Mercurial > hg > soundsoftware-site
comparison .svn/pristine/12/121eeed4fcb10e023ef41b53336708e73d10e3e6.svn-base @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
1 <%= form_tag({:action => 'edit', :tab => 'authentication'}) do %> | |
2 | |
3 <div class="box tabular settings"> | |
4 <p><%= setting_check_box :login_required %></p> | |
5 | |
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 | |
8 <p><%= setting_select :self_registration, [[l(:label_disabled), "0"], | |
9 [l(:label_registration_activation_by_email), "1"], | |
10 [l(:label_registration_manual_activation), "2"], | |
11 [l(:label_registration_automatic_activation), "3"]] %></p> | |
12 | |
13 <p><%= setting_check_box :unsubscribe %></p> | |
14 | |
15 <p><%= setting_text_field :password_min_length, :size => 6 %></p> | |
16 | |
17 <p><%= setting_check_box :lost_password, :label => :label_password_lost %></p> | |
18 | |
19 <p><%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %></p> | |
20 | |
21 <p><%= setting_check_box :rest_api_enabled %></p> | |
22 | |
23 <p><%= setting_check_box :jsonp_enabled %></p> | |
24 </div> | |
25 | |
26 <fieldset class="box"> | |
27 <legend><%= l(:label_session_expiration) %></legend> | |
28 | |
29 <div class="tabular settings"> | |
30 <p><%= setting_select :session_lifetime, [[l(:label_disabled), 0]] + [1, 7, 30, 60, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), (days * 60 * 24).to_s]} %></p> | |
31 <p><%= setting_select :session_timeout, [[l(:label_disabled), 0]] + [1, 2, 4, 8, 12, 24, 48].collect{|hours| [l('datetime.distance_in_words.x_hours', :count => hours), (hours * 60).to_s]} %></p> | |
32 </div> | |
33 | |
34 <p><em class="info"><%= l(:text_session_expiration_settings) %></em></p> | |
35 </fieldset> | |
36 | |
37 <%= submit_tag l(:button_save) %> | |
38 <% end %> |