<%= t('spree.store') %>
<%= f.label :name %> <%= f.text_field :name, class: 'fullwidth' %>
<%= f.label :amount %> <%= f.text_field :amount, class: 'fullwidth' %>
<%= t('spree.tax_rate_amount_explanation') %>
<%= f.label :level, t('spree.tax_rate_level') %> <%= admin_hint t('spree.tax_rate_level'), t(:tax_rate_level, scope: [:spree, :hints, "spree/tax_rate"]) %>
    <% Spree::TaxRate.levels.keys.each do |level| %>
  • <% end %>
<%= f.label :zone, Spree::Zone.model_name.human %> <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'custom-select fullwidth'}) %>
<%= f.label :tax_category_ids, Spree::TaxCategory.model_name.human %> <%= f.collection_select(:tax_category_ids, @available_categories, :id, :name, {}, {class: 'select2 fullwidth', multiple: "multiple"}) %>
<%= label_tag :validity_period, t('spree.validity_period') %> <%= admin_hint t('spree.validity_period'), t(:validity_period, scope: [:spree, :hints, "spree/tax_rate"]) %>
<%= f.text_field :starts_at, class: 'datepicker form-control datepicker-from', value: datepicker_field_value(f.object.starts_at), placeholder: Spree::TaxRate.human_attribute_name(:starts_at) %>
<%= f.text_field :expires_at, class: 'datepicker form-control datepicker-to', value: datepicker_field_value(f.object.expires_at), placeholder: Spree::TaxRate.human_attribute_name(:expires_at) %>
<%= render partial: 'spree/admin/shared/calculator_fields', locals: { f: f, hint: :tax_rates } %>