Sha256: b75388fa3ef07418d06cb5f77e8accc03c105a7f697d8bf798529590b1ede217

Contents?: true

Size: 519 Bytes

Versions: 7

Compression:

Stored size: 519 Bytes

Contents

= image_tag(field.preview_image(current_form.object)) if field.has_image?(current_form.object)
= content_tag(:span, { class: 'actions'}) do
  = current_form.file_field field.name
  = current_form.hidden_field field.cache_name
  - if current_form.object.send(field.name).present?
    = content_tag(:div, class: 'remove_checkbox') do
      = current_form.check_box "remove_#{field.name}"
      = current_form.label "remove_#{field.name}", I18n.t("components.lolita.configuration.field.file.remove_current_upload")
.clear

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lolita-file-upload-1.0.5 app/views/components/lolita/configuration/field/file/_display.html.haml
lolita-file-upload-1.0.4 app/views/components/lolita/configuration/field/file/_display.html.haml
lolita-file-upload-1.0.3 app/views/components/lolita/configuration/field/file/_display.html.haml
lolita-file-upload-1.0.2 app/views/components/lolita/configuration/field/file/_display.html.haml
lolita-file-upload-1.0.1 app/views/components/lolita/configuration/field/file/_display.html.haml
lolita-file-upload-1.0.0 app/views/components/lolita/configuration/field/file/_display.html.haml
lolita-file-upload-0.8.3 app/views/components/lolita/configuration/field/file/_display.html.haml