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