<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% fields_for @system_setting do |form| %>
<%= t 'system_settings.smtp_server' %>
<%= form.label :email_server_address, t_label('system_settings.address') %>
<%= form.text_field :email_server_address, :disabled => @view_only, :class => "x-form-field email-server-address-field" %>

<%= t 'system_settings.smtp_server_caption' %>

<%= form.label :email_server_port, t_label('system_settings.port') %>
<%= form.spinner :email_server_port, :minValue => 0, :maxValue => 65535, :disabled => @view_only, :class => "email-server-port-field" %>

<%= t 'system_settings.port_caption' %>

<%= form.label :email_use_ssl, t_label('system_settings.use_ssl') %>
<%= form.check_box :email_use_ssl, :disabled => @view_only %>

<%= t 'system_settings.use_ssl_caption'%>

<%= form.label :email_server_timeout, t_label('system_settings.timeout') %>
<%= form.spinner :email_server_timeout, :minValue => 10, :maxValue => 600, :disabled => @view_only, :class => "email-server-timeout-field" %>

<%= t 'system_settings.timeout_caption' %>

<%= form.label :email_server_requires_authentication, t_label('system_settings.auth_required') %>
<%= form.check_box :email_server_requires_authentication, :disabled => @view_only %>
<%= form.label :email_server_login_name, t_label('common.user_name') %>
<%= form.text_field :email_server_login_name, :disabled => @view_only, :class => "x-form-field email-server-address-field" %>

<%= t 'system_settings.user_name_caption' %>

<%= form.label :email_server_login_password, t_label('common.password'), :class => "password-label item-label" %>
<%= password_field_tag 'system_setting[password]', '', { :size => 20, :class => "x-form-field password-field", :maxLength => 128, :disabled => @view_only, :autoComplete => "off"} %>

<%= t('system_settings.email_password_caption') %>

<%= form.label :confirm_password, t_label('common.confirm_password'), :class => "password-label item-label" %>
<%= password_field_tag 'system_setting[confirm_password]', '', { :size => 20, :class => "x-form-field password-field", :maxLength => 128, :disabled => @view_only, :autoComplete => "off"} %>

<%= t('agent_environments.confirm_password_caption') %>

<%= form.label :email_sender_address, t_label('system_settings.sender_email'), :class => "email-sender-address-label item-label" %>
<%= form.text_field :email_sender_address, :disabled => @view_only, :class => "x-form-field email-server-timeout-field" %>

<%= t('system_settings.sender_email_caption') %>

<%= form.label :max_email_attachment_size, t_label('system_settings.max_email_attachment_size_label'), :class => "max-email-attachment-size-label item-label" %>
<%= form.spinner :max_email_attachment_size, :minValue => 1, :maxValue => 999, :disabled => @view_only, :class => "max-email-attachment-size-field" %>

<%= t('system_settings.max_email_attachment_size_caption') %>

<% end %>