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

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

<% @collection.each do |product| %> id="<%= dom_id product %>" data-hook="admin_products_index_rows"> <% end %>
<%= t(:sku) %> <%= sort_link @search,:name, t(:name), {}, {:title => 'admin_products_listing_name_title'} %> <%= sort_link @search,:master_price, t(:master_price) %>
<%= product.sku %> <%= product.name %> <%= number_to_currency product.price %> <%= link_to_edit product, :class => 'edit' unless product.deleted? %>   <%= link_to_clone product, :class => 'clone' %>   <%= link_to_delete product unless product.deleted? %>
<%= paginate @products %> <% content_for :sidebar do %>
<%= form_for [:admin, @search] do |f| %>

<%= t(:search) %>

<%- locals = {:f => f} %>

<%= f.label :name_contains, t(:name) %>
<%= f.text_field :name_contains, :size => 15 %>

<%= f.label :variants_including_master_sku_contains, t(:sku) %>
<%= f.text_field :variants_including_master_sku_contains, :size => 15 %>

<%= f.label :deleted_at_is_null, t(:show_deleted) %>
<%= f.check_box :deleted_at_is_null, {:checked => params[:search][:deleted_at_is_null].blank?}, '', '1' %>

<%= button t(:search) %>

<% end %>
<% end %>