<%= text_field :payment_method, :name, {"style" => "width:200px"} %>
<%= text_area :payment_method, :description, {:cols => 60, :rows => 4} %>
<%= collection_select(:payment_method, :environment, Configuration.configurations.keys, :to_s, :titleize, {}, {:id => "gtwy-env"}) %>
<%= select(:payment_method, :display_on, PaymentMethod::DISPLAY.collect {|display| [t(display), display == :both ? nil : display.to_s]}) %>
 

<%= t('settings') %>

<%= f.label(:type, t("provider")) %> <%= collection_select(:payment_method, :type, @providers, :to_s, :name, {}, {:id => "gtwy-type"}) %> <% unless @object.new_record? %> <%= preference_fields(@object, f) %> <% if @object.respond_to?(:preferences) %>
<%= t('provider_settings_warning')%>
<% end %> <% end %>