source: OpenWorkouts-current/ow/templates/signup.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: 2.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_anonymous.pt"
8      tal:attributes="lang request.locale_name">
9
10  <metal:content metal:fill-slot="content">
11
12      <!-- Login -->
13
14      <div class="signup-content">
15
16        <form method="post" name="signup" action="">
17
18          <fieldset>
19            <div>
20              ${form.errorlist('username')}
21              <label for="username" i18n:translate="">Username</label>
22              <input placeholder="Choose a cool username" type="text"
23                     name="username" value="" i18n:attributes="placeholder">
24            </div>
25
26            <div>
27              ${form.errorlist('email')}
28              <label for="email" i18n:translate="">Email</label>
29              <input placeholder="We need a valid email address"
30                     type="text" name="email"
31                     value="" i18n:attributes="placeholder">
32            </div>
33            <div>
34              ${form.errorlist('firstname')}
35              <label for="firstname" i18n:translate="">First name</label>
36              <input placeholder="Your real first name here" type="text"
37                     name="firstname" value="" i18n:attributes="placeholder">
38            </div>
39            <div>
40              ${form.errorlist('lastname')}
41              <label for="lastname" i18n:translate="">Last name</label>
42              <input placeholder="Your family name here" type="text"
43                     name="lastname" value="" i18n:attributes="placeholder">
44            </div>
45            <div>
46              ${form.errorlist('password')}
47              <label for="password" i18n:translate="">Password</label>
48              <input placeholder="More than 9 characters, numbers and/or symbols"
49                     name="password"
50                     type="password" i18n:attributes="placeholder">
51            </div>
52
53            <div>
54              ${form.errorlist('password_confirm')}
55              <label for="password_confirm" i18n:translate="">Password (confirm)</label>
56              <input placeholder="Confirm your password" name="password_confirm"
57                     type="password" i18n:attributes="placeholder">
58            </div>
59          </fieldset>
60
61          <input class="button" type="submit" name="submit" value="Sign up!">
62
63        </form>
64
65      </div>
66
67  </metal:content>
68
69</html>
Note: See TracBrowser for help on using the repository browser.