source: OpenWorkouts-current/ow/templates/signup.pt @ 8c2b094

current
Last change on this file since 8c2b094 was 8c2b094, checked in by Borja Lopez <borja@…>, 5 years ago

(#59) Errors in the sign up form are now readable

  • Property mode set to 100644
File size: 2.9 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="login-content">
15
16        <form method="post" name="signup" action="">
17
18          <fieldset>
19            <div>
20              <label for="email" i18n:translate="">Email</label>
21              <input placeholder="We need a valid email address"
22                     type="text" name="email"
23                     value="" i18n:attributes="placeholder"
24                     tal:attributes="value form.data.get('email', '')">
25              ${form.errorlist('email')}
26
27            </div>
28            <div>
29              <label for="nickname" i18n:translate="">Nickname</label>
30              <input placeholder="Choose a cool nickname" type="text"
31                     name="nickname" value=""
32                     i18n:attributes="placeholder"
33                     tal:attributes="value form.data.get('nickname', '')">
34              ${form.errorlist('nickname')}
35            </div>
36            <div>
37              <label for="firstname" i18n:translate="">First name</label>
38              <input placeholder="Your real first name here" type="text"
39                     name="firstname" value="" i18n:attributes="placeholder"
40                     tal:attributes="value form.data.get('firstname', '')">
41              ${form.errorlist('firstname')}
42            </div>
43            <div>
44              <label for="lastname" i18n:translate="">Last name</label>
45              <input placeholder="Your family name here" type="text"
46                     name="lastname" value="" i18n:attributes="placeholder"
47                     tal:attributes="value form.data.get('lastname', '')">
48              ${form.errorlist('lastname')}
49            </div>
50            <div>
51              <label for="password" i18n:translate="">Password</label>
52              <input placeholder="More than 9 characters, numbers and/or symbols"
53                     name="password"
54                     type="password" i18n:attributes="placeholder">
55              ${form.errorlist('password')}
56            </div>
57            <div>
58              <label for="password_confirm" i18n:translate="">Password (confirm)</label>
59              <input placeholder="Confirm your password" name="password_confirm"
60                     type="password" i18n:attributes="placeholder">
61              ${form.errorlist('password_confirm')}
62            </div>
63          </fieldset>
64
65          <input class="button button-action" type="submit" name="submit" value="Sign up!"
66                 i18n:attributes="value">
67
68        </form>
69
70      </div>
71
72  </metal:content>
73
74</html>
Note: See TracBrowser for help on using the repository browser.