Sha256: ce504dd6b60a085dadefa9bda06495e41d3abe1c699c341a1720d7df3dd6f6eb
Contents?: true
Size: 1.96 KB
Versions: 3
Compression:
Stored size: 1.96 KB
Contents
<%= render :partial => 'spree/admin/shared/product_sub_menu' %> <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %> <table class="index sortable" data-hook="images_table"> <tr data-hook="images_header"> <th><%= t(:thumbnail) %></th> <% if @product.has_variants? %> <th><%= Spree::Variant.model_name.human %></th> <% end %> <th><%= t(:alt_text) %></th> <th><%= t(:action) %></th> </tr> <% @product.images.each do |image| %> <tr id="<%= dom_id(image) %>" data-hook="images_row"> <td> <span class="handle"></span> <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %> </td> <% if @product.has_variants? %> <td><%= t(:all) %></td> <% end %> <td><%= image.alt %></td> <td class="actions"> <%= link_to_with_icon 'edit', t(:edit), edit_admin_product_image_url(@product, image), :class => 'edit' %> <%= link_to_delete image, {:url => admin_product_image_url(@product, image) }%> </td> </tr> <% end %> <% @product.variants.each do |variant| %> <% variant.images.each do |image| %> <tr id="<%= dom_id(image) %>" data-hook="images_row"> <td><span class="handle"></span><%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %></td> <% if @product.has_variants? %> <td><%= variant.options_text %></td> <% end %> <td><%= image.alt %></td> <td class="actions"> <%= link_to_with_icon 'edit', t(:edit), edit_admin_product_image_url(@product, image) %> <%= link_to_delete image, {:url => admin_product_image_url(@product, image) }%> </td> </tr> <% end %> <% end %> </table> <div id="images" data-hook></div> <br /> <p data-hook="links"> <%= link_to icon('add') + ' ' + t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link' %> </p>
Version data entries
3 entries across 3 versions & 1 rubygems