Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/app/views/users/forgot_password.html.erb
blob: 605ca5fecec7c312b3d720b02ce6ebc680e94e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%
#--
#   Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
#   Copyright (C) 2008 Johan Sørensen <johan@johansorensen.com>
#   Copyright (C) 2008 Tor Arne Vestbø <tavestbo@trolltech.com>
#   Copyright (C) 2009 Fabio Akita <fabio.akita@gmail.com>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#++
%>
<div id="content">
  <% form_for :user, :url => forgot_password_create_users_path do |f| -%>
<div class="form-wrapper" id="forgotpw">
		<div id="forgot-pw">
				<h1>Forgotten password</h1>	
				<p>You will receive an e-mail with instructions on how to reset your password.</p>
						<div class="horisontal-shadow"></div>
						<ul>
							<li>
								<%= f.label :email, t(:email, :scope => "activerecord.attributes.user") -%>
								<%= f.text_field :email -%>
							</li>
							<li>
								<div class="submit">
									  <%= f.submit t("views.users.send_new_passwd") %>
								</div>
							</li>
						</ul>
		</div>

	</div>
			<p class="alt_links">
			    <small>
			    <% if GitoriousConfig['public_mode'] -%>
			      <%= link_to t("views.sessions.register"), new_user_path -%> 
			      &mdash;
			    <% end -%> 
			    <%= link_to t("views.sessions.forgot"), forgot_password_users_path -%>
			    </small>
			</p>
	</div>
<% end -%>

</div>