source: OpenWorkouts-current/ow/templates/change_password.pt @ 5ec3a0b

currentfeature/docs
Last change on this file since 5ec3a0b was 5ec3a0b, checked in by borja <borja@…>, 5 years ago

Imported sources from the old python2-only repository:

  • Modified the code so it is python 3.6 compatible
  • Fixed deprecation warnings, pyramid 1.10.x supported now
  • Fixed deprecation warnings about some libraries, like pyramid-simpleform
  • Added pytest-pycodestyle and pytest-flakes for automatic checks on the source code files when running tests.
  • Added default pytest.ini setup to enforce some default parameters when running tests.
  • Cleaned up the code a bit, catched up with tests coverage.
  • Property mode set to 100644
File size: 1.5 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    <div id="add_workout">
20      ${form.begin()}
21      ${form.csrf_token()}
22
23      <fieldset>
24        ${form.errorlist('old_password')}
25        <label for="old_password" i18n:translate="">
26          Old/current password:</label>
27        ${form.password('old_password')}
28      </fieldset>
29
30      <fieldset>
31        ${form.errorlist('password')}
32        <label for="password" i18n:translate="">
33          New password:</label>
34        ${form.password('password')}
35        ${form.errorlist('password_confirm')}
36        <label for="password_confirm" i18n:translate="">
37          New password (again):</label>
38        ${form.password('password_confirm')}
39      </fieldset>
40
41      ${form.submit("submit", "Save")}
42      <a href="" tal:attributes="href request.resource_url(context, 'profile')"
43         i18n:translate="">Cancel</a>
44
45      ${form.end()}
46    </div>
47
48  </metal:content>
49
50</html>
Note: See TracBrowser for help on using the repository browser.