<% @product.option_types.each do |option_type| %>
<%= label :new_variant, option_type.presentation %> <%= f.collection_select 'option_value_ids', option_type.option_values, :id, :presentation, { :prompt => true }, { :name => 'variant[option_value_ids][]', :class => 'select2 fullwidth' } %>
<% end %>
<%= f.label :sku, Spree.t(:sku) %> <%= f.text_field :sku, :class => 'fullwidth' %>
<%= f.label :price, Spree.t(:price) %> <%= f.text_field :price, :value => number_to_currency(@variant.price, :unit => ''), :class => 'fullwidth' %>
<%= f.label :cost_price, Spree.t(:cost_price) %> <%= f.text_field :cost_price, :value => number_to_currency(@variant.cost_price, :unit => ''), :class => 'fullwidth' %>
<%= 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 fullwidth' }) %>
<% [:weight, :height, :width, :depth].each do |field| %>
<%= f.label field, Spree.t(field) %> <% value = number_with_precision(@variant.send(field), :precision => 2) %> <%= f.text_field field, :value => value, :class => 'fullwidth' %>
<% end %>