Sha256: 574ddfb86a56354df7483980c49ddb8a162b72771ce19bb5d830023abf87fe96
Contents?: true
Size: 1.04 KB
Versions: 13
Compression:
Stored size: 1.04 KB
Contents
<% Spree::Deprecation.warn( "This partial with its support for multiple Spree::Taxon attachments is deprecated and will be removed in a future " \ "version of Solidus, please overwrite the standard view if you need to support custom attachments." ) %> <% 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
13 entries across 13 versions & 1 rubygems