<% content_for :head do %> <%= calendar_date_select_includes %> <% end %>
<% f.field_container :name do %> <%= f.label :name, t("name") %> *
<%= f.text_field :name, :class => 'fullwidth title' %> <%= f.error_message_on :name %> <% end %> <% f.field_container :description do %> <%= f.label :description, t("description")%>
<%= f.text_area :description, {:cols => 60, :rows => 4, :class => 'fullwidth'} %> <%= f.error_message_on :description %> <% end %>
<% f.field_container :master_price do %> <%= f.label :master_price, t("master_price")%> *
<%= f.text_field :master_price %> <%= f.error_message_on :master_price%> <% end %>

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

<% if @product.variant %>

<%= f.label :sku, t("sku") %>
<%= f.text_field :sku, :size => 16 %>

<%= f.label :on_hand, t("on_hand")%>
<%= f.text_field :on_hand, :size => 4 %>

<% end %>

<%= f.label :shipping_category_id, t("shipping_categories")%>
<%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, {:include_blank => true}, {"style" => "width:200px"}) %> <%= f.error_message_on :shipping_category %>

<%= f.label :tax_category_id, t("tax_category")%>
<%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, {:include_blank => true}, {"style" => "width:200px"}) %> <%= f.error_message_on :tax_category%>

<%= t("metadata") %>

<%= f.label :meta_keywords, t("meta_keywords")%>
<%= f.text_field :meta_keywords, :class => 'fullwidth' %>

<%= f.label :meta_description, t("meta_description")%>
<%= f.text_field :meta_description, :class => 'fullwidth' %>

<%#= render 'properties_form', :f => f %> <% Variant.additional_fields.select{|f| f[:only].nil? || f[:only].include?(:product) }.each do |field| %> <%= render :partial => "admin/shared/additional_field", :locals => {:field => field, :f => f} %> <% end %>
<%= render :partial => 'images', :locals => {:viewable => @product, :f => f} -%>