Sha256: 12902ce9639a365fcccc83dce412dc854261ef758cc36cb38965bf6c7f9c2bd9

Contents?: true

Size: 1.69 KB

Versions: 22

Compression:

Stored size: 1.69 KB

Contents

<div data-hook="admin_shipping_method_form_fields">
  <%= f.field_container :name do %>
    <%= f.label :name, t(:name) %><br />
    <%= f.text_field :name %>
    <%= error_message_on :shipping_method, :name %>
  <% end %>

  <%= f.field_container :zone_id do %>
    <%= f.label :zone_id, t(:zone) %><br />
    <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {'style' => 'width:200px;'}) %>
    <%= error_message_on :shipping_method, :zone_id %>
  <% end %>

  <%= f.field_container :display_on do %>
    <%= f.label :display_on, t(:display) %><br />
    <%= select(:shipping_method, :display_on, Spree::ShippingMethod::DISPLAY.collect { |display| [t(display), display == :both ? nil : display.to_s] }) %>
    <%= error_message_on :shipping_method, :display_on %>
  <% end %>
</div>

<div data-hook"admin_shipping_method_form_availability_fields">
  <fieldset class="categories">
    <legend><%= t(:availability) %></legend>
    <%= f.field_container :shipping_category do %>
      <%= f.label :shipping_category, t(:shipping_category_choose) %>
      <%= select(:shipping_method, :shipping_category_id, Spree::ShippingCategory.all.collect { |s| [s.name, s.id] }, { :include_blank => true }) %>
    <% end %>

    <b><%= t(:match_rule) %></b>&nbsp;&nbsp;
    <%= f.check_box :match_none %>&nbsp;<%= f.label :match_none, t('match_choices.none') %>
    <%= f.check_box :match_one %>&nbsp;<%= f.label :match_one, t('match_choices.one') %>
    <%= f.check_box :match_all %>&nbsp;<%= f.label :match_all, t('match_choices.all') %>
  </fieldset>
</div>

<div data-hook="admin_shipping_method_form_calculator_fields">
  <%= render :partial => 'spree/admin/shared/calculator_fields', :locals => { :f => f } %>
</div>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.2.2 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.4 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.2.0 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.2.0.rc2 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.2.0.rc1 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.3 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.6 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.2 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.1 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.0 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.4 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.0.rc2 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.1.0.rc1 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.3 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.2 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.1 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.0 app/views/spree/admin/shipping_methods/_form.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/shipping_methods/_form.html.erb