<commit_before><div data-hook="admin_tax_rate_form_fields">
    <fieldset data-hook="tax_rates" class=" no-border-bottom">
      <legend align="center"><%= Spree.t(:general_settings) %></legend>
      <div class="row">

        <div class="col-5">
          <div data-hook="name" class="field">
            <%= f.label :name %>
            <%= f.text_field :name, class: 'fullwidth' %>
          </div>
          <div data-hook="rate" class="field">
            <%= f.label :amount %>
            <%= f.text_field :amount, class: 'fullwidth' %>
            <br/><span class="info"><%= Spree.t(:tax_rate_amount_explanation) %></span>
          </div>
          <div data-hook="included" class="field">
            <%= f.check_box :included_in_price %>
            <%= f.label :included_in_price, Spree.t(:included_in_price) %>
          </div>
        </div>

        <div class="col-5">
          <div data-hook="zone" class="field">
            <%= f.label :zone, Spree::Zone.model_name.human %>
            <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'select2 fullwidth'}) %>
          </div>
          <div data-hook="category" class="field">
            <%= 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"}) %>
          </div>
          <div data-hook="show_rate" class="field">
            <%= f.check_box :show_rate_in_label %>
            <%= f.label :show_rate_in_label, Spree.t(:show_rate_in_label) %>
          </div>

          <div class="date-range-filter field">
            <%= label_tag :validity_period, Spree.t(:validity_period) %>
            <%= admin_hint Spree.t(:validity_period), Spree.t(:validity_period, scope: [:hints, "spree/tax_rate"]) %>
            <div class="date-range-fields input-group">
              <%= 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) %>

              <span class="range-divider input-group-addon">
                <i class="fa fa-arrow-right"></i>
              </span>

              <%= 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) %>
            </div>
          </div>
        </div>
      </div>
    </fieldset>

  <div class="clear"></div><commit_msg>Use custom-select on tax rates page<commit_after><div data-hook="admin_tax_rate_form_fields">
    <fieldset data-hook="tax_rates" class=" no-border-bottom">
      <legend align="center"><%= Spree.t(:general_settings) %></legend>
      <div class="row">

        <div class="col-5">
          <div data-hook="name" class="field">
            <%= f.label :name %>
            <%= f.text_field :name, class: 'fullwidth' %>
          </div>
          <div data-hook="rate" class="field">
            <%= f.label :amount %>
            <%= f.text_field :amount, class: 'fullwidth' %>
            <br/><span class="info"><%= Spree.t(:tax_rate_amount_explanation) %></span>
          </div>
          <div data-hook="included" class="field">
            <%= f.check_box :included_in_price %>
            <%= f.label :included_in_price, Spree.t(:included_in_price) %>
          </div>
        </div>

        <div class="col-5">
          <div data-hook="zone" class="field">
            <%= f.label :zone, Spree::Zone.model_name.human %>
            <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'custom-select fullwidth'}) %>
          </div>
          <div data-hook="category" class="field">
            <%= 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"}) %>
          </div>
          <div data-hook="show_rate" class="field">
            <%= f.check_box :show_rate_in_label %>
            <%= f.label :show_rate_in_label, Spree.t(:show_rate_in_label) %>
          </div>

          <div class="date-range-filter field">
            <%= label_tag :validity_period, Spree.t(:validity_period) %>
            <%= admin_hint Spree.t(:validity_period), Spree.t(:validity_period, scope: [:hints, "spree/tax_rate"]) %>
            <div class="date-range-fields input-group">
              <%= 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) %>

              <span class="range-divider input-group-addon">
                <i class="fa fa-arrow-right"></i>
              </span>

              <%= 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) %>
            </div>
          </div>
        </div>
      </div>
    </fieldset>

  <div class="clear"></div>
{'fraction_non_alphanumeric': 0.17159309021113245, 'fraction_numerical': 0.001343570057581574, 'mean_word_length': 2.5545702592087314, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3951146', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1645, 'n_words': 280}