@@ -1,27 +1,27 | |||||
1 | <% form_tag({:action => 'edit', :tab => 'authentication'}) do %> |
|
1 | <% form_tag({:action => 'edit', :tab => 'authentication'}) do %> | |
2 |
|
2 | |||
3 | <div class="box tabular settings"> |
|
3 | <div class="box tabular settings"> | |
4 | <p><%= setting_check_box :login_required %></p> |
|
4 | <p><%= setting_check_box :login_required %></p> | |
5 |
|
5 | |||
6 |
<p><%= setting_select :autologin, [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} |
|
6 | <p><%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %></p> | |
7 |
|
7 | |||
8 | <p><%= setting_select :self_registration, [[l(:label_disabled), "0"], |
|
8 | <p><%= setting_select :self_registration, [[l(:label_disabled), "0"], | |
9 | [l(:label_registration_activation_by_email), "1"], |
|
9 | [l(:label_registration_activation_by_email), "1"], | |
10 | [l(:label_registration_manual_activation), "2"], |
|
10 | [l(:label_registration_manual_activation), "2"], | |
11 | [l(:label_registration_automatic_activation), "3"]] %></p> |
|
11 | [l(:label_registration_automatic_activation), "3"]] %></p> | |
12 |
|
12 | |||
13 | <p><%= setting_text_field :password_min_length, :size => 6 %></p> |
|
13 | <p><%= setting_text_field :password_min_length, :size => 6 %></p> | |
14 |
|
14 | |||
15 | <p><%= setting_check_box :lost_password, :label => :label_password_lost %></p> |
|
15 | <p><%= setting_check_box :lost_password, :label => :label_password_lost %></p> | |
16 |
|
16 | |||
17 | <p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p> |
|
17 | <p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p> | |
18 |
|
18 | |||
19 | <p><%= setting_check_box :rest_api_enabled %></p> |
|
19 | <p><%= setting_check_box :rest_api_enabled %></p> | |
20 | </div> |
|
20 | </div> | |
21 |
|
21 | |||
22 | <div style="float:right;"> |
|
22 | <div style="float:right;"> | |
23 | <%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'icon icon-server-authentication' %> |
|
23 | <%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'icon icon-server-authentication' %> | |
24 | </div> |
|
24 | </div> | |
25 |
|
25 | |||
26 | <%= submit_tag l(:button_save) %> |
|
26 | <%= submit_tag l(:button_save) %> | |
27 | <% end %> |
|
27 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now