<%= f.field_container :name do %>
<%= f.label :name, raw(Spree.t(:name) + content_tag(:span, ' *', :class => 'required')) %>
<%= f.text_field :name, :class => 'fullwidth title' %>
<%= f.error_message_on :name %>
<% end %>
<%= f.field_container :permalink do %>
<%= f.label :permalink, raw(Spree.t(:permalink) + content_tag(:span, ' *', :class => "required")) %>
<%= f.text_field :permalink, :class => 'fullwidth title' %>
<%= f.error_message_on :permalink %>
<% end %>
<%= f.field_container :description do %>
<%= f.label :description, Spree.t(:description) %>
<%= f.text_area :description, {:rows => "#{unless @product.has_variants? then '20' else '13' end}", :class => 'fullwidth'} %>
<%= f.error_message_on :description %>
<% end %>
<%= f.field_container :price do %>
<%= f.label :price, raw(Spree.t(:master_price) + content_tag(:span, ' *', :class => "required")) %>
<%= f.text_field :price, :value => number_to_currency(@product.price, :unit => '') %>
<%= f.error_message_on :price %>
<% end %>
<%= f.field_container :cost_price do %>
<%= f.label :cost_price, Spree.t(:cost_price) %>
<%= f.text_field :cost_price, :value => number_to_currency(@product.cost_price, :unit => '') %>
<%= f.error_message_on :cost_price %>
<% end %>
<%= f.field_container :cost_currency do %>
<%= f.label :cost_currency, Spree.t(:cost_currency) %>
<%= f.text_field :cost_currency %>
<%= f.error_message_on :cost_currency %>
<% end %>
<%= f.field_container :available_on do %>
<%= f.label :available_on, Spree.t(:available_on) %>
<%= f.error_message_on :available_on %>
<%= f.text_field :available_on, :value => datepicker_field_value(@product.available_on), :class => 'datepicker' %>
<% end %>
<% unless @product.has_variants? %>
<%= f.field_container :sku do %>
<%= f.label :sku, Spree.t(:sku) %>
<%= f.text_field :sku, :size => 16 %>
<% end %>
-
<%= f.label :weight, Spree.t(:weight) %>
<%= f.text_field :weight, :size => 4 %>
-
<%= f.label :height, Spree.t(:height) %>
<%= f.text_field :height, :size => 4 %>
-
<%= f.label :width, Spree.t(:width) %>
<%= f.text_field :width, :size => 4 %>
-
<%= f.label :depth, Spree.t(:depth) %>
<%= f.text_field :depth, :size => 4 %>
<% end %>
<%= f.field_container :shipping_categories do %>
<%= f.label :shipping_category_id, Spree.t(:shipping_categories) %>
<%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
<%= f.error_message_on :shipping_category %>
<% end %>
<%= f.field_container :tax_category do %>
<%= f.label :tax_category_id, Spree.t(:tax_category) %>
<%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
<%= f.error_message_on :tax_category %>
<% end %>
<%= f.field_container :taxons do %>
<%= f.label :taxon_ids, Spree.t(:taxons) %>
<%= f.hidden_field :taxon_ids, :value => @product.taxon_ids.join(',') %>
<% end %>
<%= f.field_container :option_types do %>
<%= f.label :option_type_ids, Spree.t(:option_types) %>
<%= f.hidden_field :option_type_ids, :value => @product.option_type_ids.join(',') %>
<% end %>
<%= f.field_container :meta_keywords do %>
<%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
<%= f.text_field :meta_keywords, :class => 'fullwidth' %>
<% end %>
<%= f.field_container :meta_description do %>
<%= f.label :meta_description, Spree.t(:meta_description) %>
<%= f.text_field :meta_description, :class => 'fullwidth' %>
<% end %>
<% unless Rails.env.test? %>
<% end %>