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