Sha256: 216ffc86d5abea84583df9ec40d85f01cbbdf4f5f01448eeede642bb3a6ecc04

Contents?: true

Size: 974 Bytes

Versions: 19

Compression:

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

19 entries across 19 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/admin/shipping_methods/_form.html.erb
My-Commerce_core-1.1.0 app/views/admin/shipping_methods/_form.html.erb
My-Commerce_core-1.0.0 app/views/admin/shipping_methods/_form.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/shipping_methods/_form.html.erb
MyCommerce-0.0.3 core/app/views/admin/shipping_methods/_form.html.erb
rfcommerce_core-0.0.3 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.6 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.5 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.50.4 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.4 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.50.3 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.3 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.2 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.1 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.0 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.60.0.RC1 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.50.2 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.50.1 app/views/admin/shipping_methods/_form.html.erb
spree_core-0.50.0 app/views/admin/shipping_methods/_form.html.erb