<% content_for :head do %> <%= calendar_date_select_includes %> <% end %> <% render :partial => 'admin/shared/product_sub_menu' %>

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

<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %>
<% @collection.each do |product| %> > <% end %>
<%= t("sku") %> <%= order_by_link :name, :text => t("name") %> <%= order_by_link :master_price, :text => t("master_price") %>  
<%= product.sku %> <%= product.name %> <%= product.master_price %> <%= link_to_edit product if product.deleted_at.nil? %>   <%= link_to_delete product if product.deleted_at.nil? %>
<%= page_links(:prev => "« #{t('previous')}", :next => "#{t('next')} »") if @search.page_count > 1 %> <% content_for :sidebar do %> <% form_for [:admin, @search] do |f| %>

<%= t(:search) %>

<% f.fields_for @search.conditions do |products| %>


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

<% products.fields_for products.object.variants do |variants| %>


<%= variants.text_field :sku_contains, :size => 15 %>

<% end %>


<%= products.check_box :deleted_at_is_not_null, {}, "1", "" %>

<%end%>

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

<% end %> <% end %>