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

Version Path
solidus_backend-2.11.17 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.16 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.15 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.14 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.13 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.12 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.11 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.10 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.9 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.8 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.7 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.6 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
solidus_backend-2.11.5 app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb