/
mail_password_form.pt
95 lines (83 loc) · 3.8 KB
/
mail_password_form.pt
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="context/main_template/macros/master"
i18n:domain="plone">
<body>
<head>
<metal:block fill-slot="top_slot"
tal:define="dummy python:request.set('disable_border',1);
disable_column_one python:request.set('disable_plone.leftcolumn',1);
disable_column_two python:request.set('disable_plone.rightcolumn',1);" />
</head>
<metal:custom_title fill-slot="content-title">
<h1 class="documentFirstHeading"
i18n:translate="heading_lost_password">Lost Password</h1>
</metal:custom_title>
<metal:custom_desc fill-slot="content-description">
<div class="documentDescription" i18n:translate="description_lost_password">
For security reasons, we store your password encrypted, and cannot mail
it to you. If you would like to reset your password, fill out the form
below and we will send you an email at the address you gave when you
registered to start the process of resetting your password.
</div>
</metal:custom_desc>
<metal:content-core fill-slot="content-core">
<metal:content-core define-macro="content-core" tal:define="use_email_as_login python:context.portal_registry['plone.use_email_as_login'];">
<form name="mail_password"
class="enableAutoFocus"
action="mail_password"
method="post">
<fieldset>
<legend i18n:translate="heading_lost_password">Lost Password</legend>
<div class="field">
<label i18n:translate="label_my_user_name_is"
tal:condition="not:use_email_as_login"
for="userid">
My user name is
</label>
<label i18n:translate="label_my_email_address_is"
tal:condition="use_email_as_login"
for="userid">
My email address is
</label>
<input name="userid"
type="text"
id="userid"
value=""
tal:attributes="value request/userid|nothing;"
/>
</div>
<div class="formControls">
<input class="context"
type="submit"
value="Start password reset"
i18n:attributes="value"
/>
</div>
</fieldset>
</form>
<p i18n:translate="description_lost_password_mail_admin"
tal:condition="not:use_email_as_login">
If this will not work for you (for example, if you forgot your user
name or your email address has changed), contact the
<span i18n:name="site_admin">
<a href="#"
i18n:translate="label_site_admin"
tal:attributes="href string:${portal_url}/contact-info">site administration</a></span>.
</p>
<p i18n:translate="description_lost_password_mail_admin_2"
tal:condition="use_email_as_login">
If this will not work for you (for example, if your email
address has changed), contact the
<span i18n:name="site_admin">
<a href="#"
i18n:translate="label_site_admin"
tal:attributes="href string:${portal_url}/contact-info">site administration</a></span>.
</p>
</metal:content-core>
</metal:content-core>
</body>
</html>