<%= render :partial => 'admin/shared/product_sub_menu' %> <%= render "shared/error_messages", :target => @product %> <%= form_for(:product, :url => collection_url, :html => { :multipart => true }) do |f| %>
<%= f.field_container :name do %> <%= f.label :name, t("name") %> *
<%= f.text_field :name, :class => 'fullwidth title' %> <%= f.error_message_on :name %> <% end %>
<% unless @product.has_variants? %> <%= f.field_container :sku do %> <%= f.label :sku, t("sku") %>
<%= f.text_field :sku, :size => 16 %> <%= f.error_message_on :sku %> <% end %> <% end %>

<%= f.label :prototype_id, t("prototype") %>
<%= f.collection_select :prototype_id, Prototype.all, :id, :name, :include_blank => true %>

<%= f.field_container :price do %> <%= f.label :price, t("master_price")%> *
<%= f.text_field :price %> <%= f.error_message_on :price%> <% end %>

<%= f.label :available_on, t("available_on") %>
<%= f.error_message_on :available_on %> <%= f.spree_date_picker :available_on, :style=>"width:150px" %>

<%= render :partial => 'admin/shared/new_resource_links' %>
<% end %> <%= javascript_tag "datePickerController.create();" %>