<%= f.label :environment, t(:environment) %> <%= f.collection_select(:environment, Rails.configuration.database_configuration.keys.sort, :to_s, :titleize, {}, {:id => 'gtwy-env'}) %>
<%= f.check_box :preferred_enable_mail_delivery, {:style => "vertical-align:middle;"} %> <%= f.label :preferred_enable_mail_delivery, t(:enable_mail_delivery) %>
<%= f.label :preferred_mails_from, t(:send_mails_as) %> <%= f.text_field :preferred_mails_from, :size => 40, :maxlength => 256 %> <%= t(:smtp_send_all_emails_as_from_following_address) %>
<%= f.label :preferred_mail_bcc, t(:send_copy_of_all_mails_to) %> <%= f.text_field :preferred_mail_bcc, :size => 40, :maxlength => 256 %> <%= t(:smtp_send_copy_to_this_addresses) %>
<%= f.label :preferred_intercept_email, t(:intercept_email_address) %> <%= f.text_field :preferred_intercept_email, :size => 40, :maxlength => 256 %> <%= t(:intercept_email_instructions) %>
<%= f.label :preferred_mail_domain, t(:smtp_domain) %> <%= f.text_field :preferred_mail_domain %>
<%= f.label :preferred_mail_host, t(:smtp_mail_host) %> <%= f.text_field :preferred_mail_host %>
<%= f.label :preferred_mail_port, t(:smtp_port) %> <%= f.text_field :preferred_mail_port %>
<%= f.label :preferred_secure_connection_type, t(:secure_connection_type) %> <%= f.collection_select(:preferred_secure_connection_type, Spree::MailMethod::SECURE_CONNECTION_TYPES, :to_s, :to_s, {}, {'style' => 'width:200px'}) %>
<%= f.label :preferred_mail_auth_type, t(:smtp_authentication_type) %> <%= f.collection_select(:preferred_mail_auth_type, Spree::MailMethod::MAIL_AUTH, :to_s, :to_s, {}, {'style' => 'width:200px'}) %>
<%= f.label :preferred_smtp_username, t(:smtp_username) %> <%= f.text_field :preferred_smtp_username %>
<%= f.label :preferred_smtp_password, t(:smtp_password) %> <%= f.password_field :preferred_smtp_password %>