Sha256: 82e7e6beabbd95b801319ce9f2b99c7142e362cfcf033ff0aedebf1d49832810

Contents?: true

Size: 972 Bytes

Versions: 9

Compression:

Stored size: 972 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

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.40.4 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.40.3 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.40.2 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.40.1 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.40.0 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.30.1 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.30.0 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.30.0.beta1 app/views/admin/shipping_methods/_form.html.erb