<%= render :partial => 'admin/shared/product_sub_menu' %>

<%= "#{t("actions.listing")} #{t("products")}" %>

<%= hook :admin_products_index_headers do %> <% end %> <% @collection.each do |product| %> id="<%= dom_id product %>"> <%- locals = {:product => product} %> <%= hook :admin_products_index_rows, locals do %> <% end %> <% end %>
<%= t("sku") %> <%= order @search, :by => :name, :as => t("name") %> <%= order @search, :by => :master_price, :as => t("master_price") %> <%= hook :admin_products_index_header_actions %>
<%= product.sku %> <%= product.name %> <%= product.price %> <%= hook :admin_products_index_row_actions, locals do %> <%= link_to_edit product unless product.deleted? %>   <%= link_to_clone product %>   <%= link_to_delete product unless product.deleted? %> <% end %>
<%= will_paginate(:previous_label => "« #{t('previous')}", :next_label => "#{t('next')} »") %> <% content_for :sidebar do %> <%= form_for @search do |f| %>

<%= t(:search) %>

<%- locals = {:f => f} %> <%= hook :admin_products_index_search, locals do %>


<%= f.text_field :name_contains, :size => 15 %>


<%= f.text_field :variants_including_master_sku_contains, :size => 15 %>


<%= f.check_box :deleted_at_not_null, {}, "1", "" %>

<% end %> <%= hook :admin_products_index_search_buttons, locals do %>

<%= button t("search") %>

<% end %>
<% end %> <% end %>