Sha256: bad4b3aa10cbf986222d9c5a8cedd6edb0b4b51d57aeca5da3c31077826a298e

Contents?: true

Size: 1.99 KB

Versions: 12

Compression:

Stored size: 1.99 KB

Contents

<div data-hook="admin_tax_rate_form_fields">
  <div class="card mb-3" data-hook="tax_rates">
    <div class="card-header">
      <h5 class="card-title mb-0 h6">
        <%= Spree.t(:general_settings) %>
      </h5>
    </div>

    <div class="card-body">
      <div class="row">
      <div class="col-12 col-lg-6">
        <%= f.field_container :name do %>
          <%= f.label :name, Spree.t(:name) %>
          <%= f.text_field :name, class: 'form-control' %>
          <%= f.error_message_on :name %>
        <% end %>
        <div data-hook="rate" class="form-group">
          <%= f.field_container :amount do %>
            <%= f.label :amount, Spree.t(:rate) %>
            <%= f.text_field :amount, class: 'form-control' %>
            <%= f.error_message_on :amount %>
            <small class="form-text text-muted">
              <%= Spree.t(:tax_rate_amount_explanation) %>
            </small>
          <% end %>
        </div>
        <div data-hook="included" class="form-group">
          <%= f.label :included_in_price do %>
            <%= f.check_box :included_in_price %>
            <%= Spree.t(:included_in_price) %>
          <% end %>
        </div>
      </div>

      <div class="col-12 col-lg-6">
        <div data-hook="zone" class="form-group">
          <%= f.label :zone, Spree.t(:zone) %>
          <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'select2'}) %>
        </div>
        <div data-hook="category" class="form-group">
          <%= f.label :tax_category_id, Spree.t(:tax_category) %>
          <%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {class: 'select2'}) %>
        </div>
        <div data-hook="show_rate" class="form-group">
          <%= f.label :show_rate_in_label do %>
            <%= f.check_box :show_rate_in_label %>
            <%= Spree.t(:show_rate_in_label) %>
          <% end %>
        </div>
      </div>
      </div>
    </div>

  </div>
</div>

<%= render 'spree/admin/shared/calculator_fields', f: f %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.8.3 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.8.2 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.8.1 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.7.2 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.6.2 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.7.1 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.7.0 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.6.1 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.6.0 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.5.1 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-4.5.0 app/views/spree/admin/tax_rates/_form.html.erb