<% content_for :page_title do %> <%= Spree.t(:listing_products) %> <% end %> <% content_for :page_actions do %> <% end %> <%= render :partial => 'spree/admin/shared/product_sub_menu' %> <% content_for :table_filter_title do %> <%= Spree.t(:search) %> <% end %> <% content_for :table_filter do %>
<%= search_form_for [:admin, @search] do |f| %> <%- locals = {:f => f} %>
<%= f.label :name_cont, Spree.t(:name) %> <%= f.text_field :name_cont, :size => 15 %>
<%= f.label :variants_including_master_sku_cont, Spree.t(:sku) %> <%= f.text_field :variants_including_master_sku_cont, :size => 15 %>
<%= button Spree.t(:search), 'icon-search' %>
<% end %>
<% end %>
<%= paginate @collection %> <% if @collection.any? %> <% @collection.each do |product| %> id="<%= spree_dom_id product %>" data-hook="admin_products_index_rows" class="<%= cycle('odd', 'even') %>"> <% end %>
<%= Spree.t(:sku) %> <%= sort_link @search,:name, Spree.t(:name), { :default_order => "desc" }, {:title => 'admin_products_listing_name_title'} %> <%= sort_link @search,:master_default_price_amount, Spree.t(:master_price), {}, {:title => 'admin_products_listing_price_title'} %>
<%= product.sku rescue '' %> <%= mini_image(product) %> <%= link_to product.try(:name), edit_admin_product_path(product) %> <%= product.display_price.to_html rescue '' %> <%= link_to_edit product, :no_text => true, :class => 'edit' unless product.deleted? %>   <%= link_to_clone product, :no_text => true, :class => 'clone' %>   <%= link_to_delete product, :no_text => true unless product.deleted? %>
<% else %>
<%= Spree.t(:no_results) %>
<% end %> <%= paginate @collection %>