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