Sha256: f2945855eb2e36e6968dd044136096c4998e0add3d556d39fa525e764d29b62b
Contents?: true
Size: 802 Bytes
Versions: 9
Compression:
Stored size: 802 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).exists? %> <%= 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
9 entries across 9 versions & 1 rubygems