<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2012 %> <% fields_for @system_setting do |form| %>
<%= form.label :minimum_password_length, t_label('system_settings.minimum_password_length_label'), :class => "minimum-password-length-label item-label" %>
<%= form.spinner :minimum_password_length, :minValue => 1, :maxValue => 40, :disabled => @view_only, :class => "minimum-password-length-field" %>

<%= t('.minimum_password_length_caption') %>

<%= form.label :passwords_require_number, t_label('system_settings.password_requires_number_label'), :class => "passwords-require-number-label item-label" %>
<%= form.check_box :passwords_require_number, :disabled => @view_only %>

<%= t('.pwd_requires_number_caption') %>

<%= form.label :passwords_require_symbols?, t_label('system_settings.password_requires_symbols_label'), :class => "passwords-require-symbols-label item-label" %>
<%= form.check_box :passwords_require_symbols, :disabled => @view_only %>

<%= t('.pwd_requires_symbol_caption') %>

<%= form.label :passwords_require_mixed_case, t_label('system_settings.password_requires_mixed_case_label'), :class => "passwords-require-mixed-case-label item-label" %>
<%= form.check_box :passwords_require_mixed_case, :disabled => @view_only, :class => "" %>

<%= t('.pwd_requires_mixed_case_caption') %>

<%= t 'system_settings.require_new_passwords_label'%>
<%= form.label :require_unique_passwords, t_label('common.Enabled'), :class => "require-unique-passwords-label item-label" %>
<%= form.check_box :require_unique_passwords, :disabled => @view_only %>
<%= form.label :number_of_unique_passwords, t_label('system_settings.unique_passwords_label'), :class => "number-of-unique-passwords-label item-label" %>
<%= form.spinner :number_of_unique_passwords, :minValue => 1, :maxValue => 32, :disabled => @view_only, :class => "number-of-unique-passwords-field" %>

<%= t('.unique_passwords_caption') %>

<%= t 'system_settings.disable_user_label' %>
<%= form.label :disable_user_on_invalid_login, t_label('common.Enabled'), :class => "disable-user-on-invalid-login-label item-label" %>
<%= form.check_box :disable_user_on_invalid_login, :disabled => @view_only %>
<%= form.label :number_of_invalid_login_attempts, t_label("system_settings.attempts_allowed_label"), :class => "number-of-invalid-login-attempts-label item-label" %>
<%= form.spinner :number_of_invalid_login_attempts, :minValue => 1, :maxValue => 32, :disabled => @view_only, :class => "number-of-invalid-login-attempts-field" %>

<%= t('.invalid_login_attempts_caption') %>

<%= t 'system_settings.expire_user_passwords' %>
<%= form.label :expire_passwords, t_label("common.Enabled"), :class => "expire-passwords-label item-label" %>
<%= form.check_box :expire_passwords, :disabled => @view_only %>
<%= form.label :password_expiration_interval, t_label('system_settings.password_expiration_interval_label'), :class => "password-expiration-interval-label item-label" %>
<%= form.spinner :password_expiration_interval, :minValue => 1, :maxValue => 365, :disabled => @view_only, :class => "password-expiration-interval-field" %>

<%= t('.password_expiration_interval_caption') %>

<%= t 'system_settings.password_expiration_notification' %>
<%= form.label :notify_user_password_expiring, t_label("common.Enabled"), :class => "notify-user-password-expiring-label item-label" %>
<%= form.check_box :notify_user_password_expiring, :disabled => @view_only %>
<%= form.label :password_expiration_notification_days, t_label("system_settings.days_before_label"), :class => "password-expiration-notification-days-label item-label" %>
<%= form.spinner :password_expiration_notification_days, :minValue => 1, :maxValue => 30, :disabled => @view_only, :class => "password-expiration-notification-days-field" %>

<%= t('.password_expiration_notification_caption') %>

<% end %>