Sha256: 61fcad2f1c072ef7e90db93e7137ee39e6ee0dec4011711e16017cd557299659
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
<%= render :partial => 'spree/admin/shared/product_sub_menu' %> <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %> <% content_for :page_actions do %> <li><%= link_to_with_icon('icon-plus', t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %></li> <% end %> <div id="images" data-hook></div> <% unless @product.images.any? || @product.variant_images.any? %> <div class="no-objects-found"> <%= t(:no_images_found) %>. </div> <% else %> <table class="index sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_product_images_url(@product) %>"> <colgroup> <col style="width: 5%"> <col style="width: 10%"> <col style="width: 25%"> <col style="width: 45%"> <col style="width: 15%"> </colgroup> <thead> <tr data-hook="images_header"> <th colspan="2"><%= t(:thumbnail) %></th> <% if @product.has_variants? %> <th><%= Spree::Variant.model_name.human %></th> <% end %> <th><%= t(:alt_text) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% (@product.images + @product.variant_images).each do |image| %> <tr id="<%= spree_dom_id image %>" data-hook="images_row" class="<%= cycle('odd', 'even')%>"> <td class="no-border"> <span class="handle"></span> </td> <td> <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %> </td> <td><%= options_text_for(image) %></td> <td><%= image.alt %></td> <td class="actions"> <%= link_to_with_icon 'icon-edit', t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %> <%= link_to_delete image, { :url => admin_product_image_url(@product, image), :no_text => true } %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_core-1.3.2 | app/views/spree/admin/images/index.html.erb |