##// END OF EJS Templates
setting password_lost renamed to lost_password...
Jean-Philippe Lang -
r232:2b7c31feb504
parent child
Show More
@@ -1,24 +1,24
1 <center>
1 <center>
2 <div class="box login">
2 <div class="box login">
3 <h2 class="icon22 icon22-authent"><%=l(:label_please_login)%></h2>
3 <h2 class="icon22 icon22-authent"><%=l(:label_please_login)%></h2>
4
4
5 <% form_tag({:action=> "login"}, :class => "tabular") do %>
5 <% form_tag({:action=> "login"}, :class => "tabular") do %>
6 <p><label for="login"><%=l(:field_login)%>:</label>
6 <p><label for="login"><%=l(:field_login)%>:</label>
7 <%= text_field_tag 'login', nil, :size => 25 %></p>
7 <%= text_field_tag 'login', nil, :size => 25 %></p>
8
8
9 <p><label for="password"><%=l(:field_password)%>:</label>
9 <p><label for="password"><%=l(:field_password)%>:</label>
10 <%= password_field_tag 'password', nil, :size => 25 %></p>
10 <%= password_field_tag 'password', nil, :size => 25 %></p>
11
11
12 <p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
12 <p><center><input type="submit" name="login" value="<%=l(:button_login)%> &#187;" class="primary" /></center>
13 <% end %>
13 <% end %>
14
14
15 <br>
15 <br>
16 <% links = []
16 <% links = []
17 links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
17 links << link_to(l(:label_register), :action => 'register') if Setting.self_registration?
18 links << link_to(l(:label_password_lost), :action => 'password_lost') if Setting.password_lost?
18 links << link_to(l(:label_password_lost), :action => 'lost_password') if Setting.lost_password?
19 %>
19 %>
20 <%= links.join(" | ") %>
20 <%= links.join(" | ") %>
21 </p>
21 </p>
22
22
23 </div>
23 </div>
24 </center> No newline at end of file
24 </center>
@@ -1,43 +1,43
1 <h2><%= l(:label_settings) %></h2>
1 <h2><%= l(:label_settings) %></h2>
2
2
3 <% form_tag({:action => 'edit'}, :class => "tabular") do %>
3 <% form_tag({:action => 'edit'}, :class => "tabular") do %>
4 <div class="box">
4 <div class="box">
5 <p><label><%= l(:setting_app_title) %></label>
5 <p><label><%= l(:setting_app_title) %></label>
6 <%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
6 <%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
7
7
8 <p><label><%= l(:setting_app_subtitle) %></label>
8 <p><label><%= l(:setting_app_subtitle) %></label>
9 <%= text_field_tag 'settings[app_subtitle]', Setting.app_subtitle, :size => 60 %></p>
9 <%= text_field_tag 'settings[app_subtitle]', Setting.app_subtitle, :size => 60 %></p>
10
10
11 <p><label><%= l(:setting_welcome_text) %></label>
11 <p><label><%= l(:setting_welcome_text) %></label>
12 <%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5 %></p>
12 <%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5 %></p>
13
13
14 <p><label><%= l(:setting_default_language) %></label>
14 <p><label><%= l(:setting_default_language) %></label>
15 <%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
15 <%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
16
16
17 <p><label><%= l(:setting_login_required) %></label>
17 <p><label><%= l(:setting_login_required) %></label>
18 <%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %><%= hidden_field_tag 'settings[login_required]', 0 %></p>
18 <%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %><%= hidden_field_tag 'settings[login_required]', 0 %></p>
19
19
20 <p><label><%= l(:setting_self_registration) %></label>
20 <p><label><%= l(:setting_self_registration) %></label>
21 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
21 <%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
22
22
23 <p><label><%= l(:label_password_lost) %></label>
23 <p><label><%= l(:label_password_lost) %></label>
24 <%= check_box_tag 'settings[password_lost]', 1, Setting.password_lost? %><%= hidden_field_tag 'settings[password_lost]', 0 %></p>
24 <%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %><%= hidden_field_tag 'settings[lost_password]', 0 %></p>
25
25
26 <p><label><%= l(:setting_attachment_max_size) %></label>
26 <p><label><%= l(:setting_attachment_max_size) %></label>
27 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
27 <%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
28
28
29 <p><label><%= l(:setting_issues_export_limit) %></label>
29 <p><label><%= l(:setting_issues_export_limit) %></label>
30 <%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
30 <%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
31
31
32 <p><label><%= l(:setting_mail_from) %></label>
32 <p><label><%= l(:setting_mail_from) %></label>
33 <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
33 <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
34
34
35 <p><label><%= l(:setting_host_name) %></label>
35 <p><label><%= l(:setting_host_name) %></label>
36 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
36 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
37
37
38 <p><label><%= l(:setting_text_formatting) %></label>
38 <p><label><%= l(:setting_text_formatting) %></label>
39 <%= select_tag 'settings[text_formatting]', options_for_select( [[l(:label_none), 0], ["textile", "textile"]], Setting.text_formatting) %></p>
39 <%= select_tag 'settings[text_formatting]', options_for_select( [[l(:label_none), 0], ["textile", "textile"]], Setting.text_formatting) %></p>
40
40
41 </div>
41 </div>
42 <%= submit_tag l(:button_save) %>
42 <%= submit_tag l(:button_save) %>
43 <% end %> No newline at end of file
43 <% end %>
@@ -1,47 +1,47
1 # redMine - project management software
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18
18
19 # DO NOT MODIFY THIS FILE !!!
19 # DO NOT MODIFY THIS FILE !!!
20 # Settings can be defined through the application in Admin -> Settings
20 # Settings can be defined through the application in Admin -> Settings
21
21
22 app_title:
22 app_title:
23 default: redMine
23 default: redMine
24 app_subtitle:
24 app_subtitle:
25 default: Project management
25 default: Project management
26 welcome_text:
26 welcome_text:
27 default:
27 default:
28 login_required:
28 login_required:
29 default: 0
29 default: 0
30 self_registration:
30 self_registration:
31 default: 1
31 default: 1
32 password_lost:
32 lost_password:
33 default: 1
33 default: 1
34 attachment_max_size:
34 attachment_max_size:
35 format: int
35 format: int
36 default: 5120
36 default: 5120
37 issues_export_limit:
37 issues_export_limit:
38 format: int
38 format: int
39 default: 500
39 default: 500
40 mail_from:
40 mail_from:
41 default: redmine@somenet.foo
41 default: redmine@somenet.foo
42 text_formatting:
42 text_formatting:
43 default: textile
43 default: textile
44 default_language:
44 default_language:
45 default: en
45 default: en
46 host_name:
46 host_name:
47 default: localhost:3000 No newline at end of file
47 default: localhost:3000
General Comments 0
You need to be logged in to leave comments. Login now