<%= f.label :sku %> <%= f.text_field :sku, class: 'fullwidth' %>
<%= t(".options") %>
<% @product.option_types.each_with_index do |option_type, index| %>
<%= label 'option_value_ids', option_type.presentation %> <%= f.collection_select 'option_value_ids', option_type.option_values, :id, :presentation, { include_blank: true }, { name: 'variant[option_value_ids][]', class: "custom-select fullwidth", id: "option_value_ids_#{option_type.presentation}" } %>
<% end %>
<%= t(".properties") %>
<% [:weight, :height, :width, :depth].each_with_index do |field, index| %>
<%= f.label field %> <%= f.text_field field, value: number_with_precision(@variant.send(field), precision: 2), class: 'fullwidth' %>
<% end %>
<%= t(".pricing") %>
<%= t('.pricing_hint') %>
<%= f.label :price %> <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :price, currency: @variant.default_price_or_build.currency %>
<% if show_rebuild_vat_checkbox? %>
<%= render "spree/admin/shared/rebuild_vat_prices_checkbox", form: f, model_name: "variant", wrapper_class: "field" %>
<% end %>
<%= f.label :cost_price %> <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :cost_price, currency_attr: :cost_currency %>
<%= f.label :tax_category %> <%= f.field_hint :tax_category %> <%= f.collection_select :tax_category_id, @tax_categories, :id, :name, { include_blank: t('.use_product_tax_category') }, { class: 'custom-select fullwidth' } %>