Sha256: f407c68a9b0225a9a0f00d33733d97f50d3b4ba8ddc6f0a83d91584e8fc7c7dd

Contents?: true

Size: 1.93 KB

Versions: 50

Compression:

Stored size: 1.93 KB

Contents

<div data-hook="admin_tax_rate_form_fields">
  <div class="panel panel-default" data-hook="tax_rates">
    <div class="panel-heading">
      <h1 class="panel-title">
        <%= Spree.t(:general_settings) %>
      </h1>
    </div>

    <div class="panel-body">
      <div class="col-xs-12 col-md-6">
        <div data-hook="name" class="form-group">
          <%= f.label :name, Spree.t(:name) %>
          <%= f.text_field :name, class: 'form-control' %>
        </div>
        <div data-hook="rate" class="form-group">
          <%= f.field_container :amount, class: ["form-group"] do %>
            <%= f.label :amount, Spree.t(:rate) %>
            <%= f.text_field :amount, class: 'form-control' %>
            <%= f.error_message_on :amount %>
          <% end %>
          <p class="help-block">
            <%= Spree.t(:tax_rate_amount_explanation) %>
          </p>
        </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-xs-12 col-md-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>

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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.14 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.13 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.12 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.11 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.4.6 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.10 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.9 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.8 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.7 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.6 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.5 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.4 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.3 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.2 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.1 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.0 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/tax_rates/_form.html.erb
spree_backend-3.7.0.rc1 app/views/spree/admin/tax_rates/_form.html.erb