Sha256: db4d2854d59dcb87c48cfaad4a2a282295818141a5561ad35f4c379d3232d21d
Contents?: true
Size: 1.37 KB
Versions: 6
Compression:
Stored size: 1.37 KB
Contents
<tr id="<%= spree_dom_id attachment %>" data-hook="attachments_row'"> <td> <% if can?(:update_positions, Spree::Attachment) %> <span class="handle"></span> <% end %> </td> <td><%= attachment.attachment_file_name %></td> <% if @product.has_variants? %> <td> <%= fields_for attachment do |f| %> <%= f.select :viewable_id, options_for_select(variants_sku_and_options_for(@product), attachment.viewable_id), {}, class: 'select2 fullwidth', autocomplete: 'off' %> <% end %> </td> <% end %> <td> <%= fields_for attachment do |f| %> <%= f.text_field :alt %> <% end %> </td> <td class="actions"> <% if can?(:update, attachment) %> <%= link_to_with_icon 'check', t('spree.actions.save'), api_variant_attachment_path(@product, attachment), no_text: true, data: { action: :save } %> <%= link_to_with_icon 'cancel', t('spree.actions.cancel'), nil, no_text: true, data: { action: :cancel } %> <%= link_to_with_icon 'edit', t('spree.actions.edit'), edit_admin_product_attachment_path(@product, attachment), no_text: true, data: { action: :edit } %> <% end %> <% if can?(:destroy, attachment) %> <%= link_to_delete attachment, url: admin_product_attachment_path(@product, attachment), no_text: true %> <% end %> </td> </tr>
Version data entries
6 entries across 6 versions & 1 rubygems