Sha256: dc242b83bda8779e69966c972f0e37a6c7a6c1b5be028fda72a8adfa7498d3a6

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 Bytes

Contents

<% f.object.class.attachment_definitions.each do |attachment, definition| %>
  <%= f.field_container attachment do %>
    <%= f.label attachment %><br>
    <%= f.file_field attachment %>
    <% if f.object.send(attachment).present? %>
      <%= image_tag f.object.send(attachment, definition[:default_style]) %>
      <%= link_to t('spree.actions.remove'),
                  admin_taxonomy_taxon_attachment_path(@taxonomy,
                                                       @taxon.id,
                                                       attachment_definition: attachment,
                                                       authenticity_token: form_authenticity_token),
                  method: :delete,
                  class: 'btn btn-sm btn-danger' %>
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_backend-2.11.4 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb