Sha256: fb0e1eac60282397d3b3e6cfbc0fd526c63c1fad3dc7bcc03c1b96bd7c9afefa

Contents?: true

Size: 969 Bytes

Versions: 4

Compression:

Stored size: 969 Bytes

Contents

<%- locals = {:f => f} -%>
<% hook :admin_shipping_method_form_fields, locals do %>
  <% 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, ShippingMethod::DISPLAY.collect {|display| [t(display), display == :both ? nil : display.to_s]})  %>
    <%= error_message_on :shipping_method, :display_on %>
  <% end %>
<% end %>

<% hook :admin_shipping_method_form_calculator_fields, locals do %>
  <%= render "admin/shared/calculator_fields", :f => f %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb
spree-0.11.2 vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb
spree-0.11.1 vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb