<%= f.field_container :name do %>
<%= f.label :name, t(:name) %>
<%= f.text_field :name %>
<%= error_message_on :shipping_method, :name %>
<% end %>
<%= f.field_container :zone_id do %>
<%= f.label :zone_id, t(:zone) %>
<%= 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) %>
<%= 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 %>
<%= render :partial => 'spree/admin/shared/calculator_fields', :locals => { :f => f } %>