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