Sha256: 289ceecc85ed66645df40f0b994f9a300b2dff2f2473299e5fd40ce02a7353a7

Contents?: true

Size: 1.83 KB

Versions: 40

Compression:

Stored size: 1.83 KB

Contents

<div class="row">
  <div class="col-12 col-lg-6" data-hook="admin_zone_form_fields">
    <div class="card mb-3">
      <div class="card-header">
        <h1 class="card-title mb-0 h5"><%= Spree.t(:general_settings)%></h1>
      </div>

      <div class="card-body">
        <%= zone_form.field_container :name, class: ['form-group'] do %>
          <%= zone_form.label :name, Spree.t(:name) %>
          <%= zone_form.text_field :name, class: 'form-control' %>
          <%= zone_form.error_message_on :name %>
        <% end %>

        <%= zone_form.field_container :description, class: ['form-group'] do %>
          <%= zone_form.label :description, Spree.t(:description) %>
          <%= zone_form.text_field :description, class: 'form-control' %>
        <% end %>

        <div data-hook="default" class="form-group checkbox">
          <%= label_tag "zone[#{:default_tax}" do %>
            <%= zone_form.check_box :default_tax %>
            <%= Spree.t(:default_tax_zone) %>
          <% end %>
        </div>

        <div data-hook="type" class="form-group">
          <strong><%= Spree.t(:type) %></strong>
          <div class="radio my-2">
            <%= label_tag :country_based do %>
              <%= zone_form.radio_button('kind', 'country', { id: 'country_based' }) %>
              <%= Spree.t(:country_based) %>
            <% end %>
          </div>
          <div class="radio my-2">
            <%= label_tag :state_based do %>
              <%= zone_form.radio_button('kind', 'state', { id: 'state_based' }) %>
              <%= Spree.t(:state_based) %>
            <% end %>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="col-12 col-lg-6">
    <%= render partial: 'state_members', locals: { zone_form: zone_form }%>
    <%= render partial: 'country_members', locals: { zone_form: zone_form } %>
  </div>
</div>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.15 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.14 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.0.8 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.13.1 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.0.7 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.2.0.rc4 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.2.0.rc3 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.13 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.0.6 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.2.0.rc2 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.0.5 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.12 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.2.0.rc1 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.0.4 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.11 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.10 app/views/spree/admin/zones/_form.html.erb
spree_backend-4.2.0.beta app/views/spree/admin/zones/_form.html.erb
spree_backend-4.1.9 app/views/spree/admin/zones/_form.html.erb