<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% fields_for @system_setting do |form| %>
<%= form.label :ldap_option, t_label('system_settings.edit_auth_config.auth_type'), :class => "email-sender-address-label item-label" %>
<%= form.select :ldap_option, [ [t('system_settings.edit_auth_config.use_automate_schedule_auth'), SystemSetting::LDAP_LEVEL_NONE], [t('system_settings.edit_auth_config.use_ldap_auth'), SystemSetting::LDAP_LEVEL_AUTHETICATION], [t('system_settings.edit_auth_config.use_ldap_auth_with_user'), SystemSetting::LDAP_LEVEL_FULL]], {:disabled=>@view_only}%>

<%= t('system_settings.edit_auth_config.auth_type_caption') %>

<%= render(:partial => 'system_settings/edit_ldap_config', :locals => { :object_key => :ldap_servers, :object_instance => @ldap_servers}) %>
<% end %>