1 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
2 | xml:lang="en" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
5 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
6 | i18n:domain="OpenWorkouts" |
---|
7 | metal:use-macro="load: base.pt" |
---|
8 | tal:attributes="lang request.locale_name"> |
---|
9 | |
---|
10 | <metal:head-title metal:fill-slot="head-title"> |
---|
11 | <tal:t i18n:translate="">Change password</tal:t> |
---|
12 | </metal:head-title> |
---|
13 | |
---|
14 | <metal:title metal:fill-slot="title"> |
---|
15 | <tal:t i18n:translate="">Change password</tal:t> |
---|
16 | </metal:title> |
---|
17 | |
---|
18 | <metal:content metal:fill-slot="content"> |
---|
19 | <h2 i18n:translate="">Edit profile</h2> |
---|
20 | |
---|
21 | <div class="change-password ow-forms"> |
---|
22 | ${form.begin()} |
---|
23 | ${form.csrf_token()} |
---|
24 | |
---|
25 | <fieldset> |
---|
26 | <p> |
---|
27 | <label for="old_password" i18n:translate=""> |
---|
28 | Old/current password:</label> |
---|
29 | ${form.errorlist('old_password')} |
---|
30 | ${form.password('old_password')} |
---|
31 | </p> |
---|
32 | </fieldset> |
---|
33 | |
---|
34 | <fieldset> |
---|
35 | <p> |
---|
36 | <label for="password" i18n:translate=""> |
---|
37 | New password:</label> |
---|
38 | ${form.errorlist('password')} |
---|
39 | ${form.password('password')} |
---|
40 | <label for="password_confirm" i18n:translate=""> |
---|
41 | New password (again):</label> |
---|
42 | ${form.errorlist('password_confirm')} |
---|
43 | ${form.password('password_confirm')} |
---|
44 | </p> |
---|
45 | </fieldset> |
---|
46 | |
---|
47 | <p> |
---|
48 | ${form.submit("submit", "Change password", **{'class':"button button-normal"})} |
---|
49 | <a href="" tal:attributes="href request.resource_url(context, 'profile')" |
---|
50 | class="button button-important" |
---|
51 | i18n:translate="">Cancel</a> |
---|
52 | </p> |
---|
53 | ${form.end()} |
---|
54 | </div> |
---|
55 | |
---|
56 | </metal:content> |
---|
57 | |
---|
58 | </html> |
---|