source: OpenWorkouts-current/ow/templates/change_password.pt @ 713de61

currentfeature/docs
Last change on this file since 713de61 was 713de61, checked in by Segundo Fdez <segun.2@…>, 5 years ago

fix semantics on reset password

  • Property mode set to 100644
File size: 2.0 KB
Line 
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
20      <div class="change-password ow-forms">
21        <a href="" tal:attributes="href request.resource_url(context, 'profile')"
22             class="back"
23             i18n:translate="">Cancel</a>
24        <h2 i18n:translate="">Edit profile</h2>
25          ${form.begin()}
26          ${form.csrf_token()}
27
28          <fieldset>
29              <div>
30                  <label for="old_password" i18n:translate="">
31                      Old/current password</label>
32                  ${form.errorlist('old_password')}
33                  ${form.password('old_password')}
34              </div>
35
36            <div class="input-container ly-flex ly-2 has-gap">
37              <div>
38                  <label for="password" i18n:translate="">
39                      New password</label>
40                  ${form.errorlist('password')}
41                  ${form.password('password')}
42                </div>
43                <div>
44                  <label for="password_confirm" i18n:translate="">
45                      New password (again)</label>
46                  ${form.errorlist('password_confirm')}
47                  ${form.password('password_confirm')}
48              </div>
49            </div>
50          </fieldset>
51
52          <p>
53              ${form.submit("submit", "Change password",  **{'class':"button button-normal"})}
54
55          </p>
56          ${form.end()}
57      </div>
58
59  </metal:content>
60
61</html>
Note: See TracBrowser for help on using the repository browser.