<%= f.label :type, t(:provider) %>
<%= collection_select(:payment_method, :type, @providers, :to_s, :name, {}, {:id => 'gtwy-type', :class => 'select2 fullwidth'}) %>
<% unless @object.new_record? %>
<%= preference_fields(@object, f) %>
<% if @object.respond_to?(:preferences) %>
<%= t(:provider_settings_warning) %>
<% end %>
<% end %>
<%= label_tag nil, t(:environment) %>
<%= collection_select(:payment_method, :environment, Rails.configuration.database_configuration.keys.sort, :to_s, :titleize, {}, {:id => 'gtwy-env', :class => 'select2 fullwidth'}) %>
<%= label_tag nil, t(:display) %>
<%= select(:payment_method, :display_on, Spree::PaymentMethod::DISPLAY.collect { |display| [t(display), display == :both ? nil : display.to_s] }, {}, {:class => 'select2 fullwidth'}) %>
<%= label_tag nil, t(:active) %>
-
<%= radio_button :payment_method, :active, true %>
<%= label_tag nil, t(:yes) %>
-
<%= radio_button :payment_method, :active, false %>
<%= label_tag nil, t(:no) %>
<%= label_tag nil, t(:name) %>
<%= text_field :payment_method, :name, :class => 'fullwidth' %>
<%= label_tag nil, t(:description) %>
<%= text_area :payment_method, :description, {:cols => 60, :rows => 6, :class => 'fullwidth'} %>