[forms] bug fix: update groups schema in db_to_form_schema, whitespace clean up.
[ckanext-datagovau.git] / ckanext / example / theme / templates / user / register.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<form id="user-edit" action="" method="post"
    py:attrs="{'class':'has-errors'} if errors else {}"
    xmlns:i18n="http://genshi.edgewall.org/i18n"
    xmlns:py="http://genshi.edgewall.org/"
    xmlns:xi="http://www.w3.org/2001/XInclude">
 
<div class="error-explanation" py:if="error_summary">
<h2>Errors in form</h2>
<p>The form contains invalid entries:</p>
<ul>
  <li py:for="key, error in error_summary.items()">${"%s: %s" % (key, error)}</li>
</ul>
</div>
 
    <dl>
        <dt><label class="field_opt" for="name">Login:</label></dt>
        <dd><input type="text" name="name" value="${data.get('name','')}" /></dd>
        <dd class="instructions basic">3+ chars, using only 'a-z0-9' and '-_'</dd>
        <dd class="field_error" py:if="errors.get('name', '')">${errors.get('name', '')}</dd>
 
        <dt><label class="field_opt" for="fullname">Full name:</label></dt>
        <dd><input type="text" name="fullname" value="${data.get('fullname','')}" /></dd>
        <dd class="field_error" py:if="errors.get('fullname', '')">${errors.get('fullname', '')}</dd>
 
        <dt><label class="field_opt" for="email">E-Mail</label></dt>
        <dd><input type="text" name="email" value="${data.get('email','')}" /></dd>
 
        <dt><label class="field_opt" for="password1">Password:</label></dt>
        <dd><input type="password" name="password1" value="" /></dd>
        <dd class="field_error" py:if="errors.get('password1', '')">${errors.get('password1', '')}</dd>
 
        <dt><label class="field_opt" for="password2">Password (repeat):</label></dt>
        <dd><input type="password" name="password2" value="" /></dd>
 
        <dd py:if="g.recaptcha_publickey">
          <script type="text/javascript"
            src="http://www.google.com/recaptcha/api/challenge?k=${g.recaptcha_publickey}">
          </script>
          <noscript>
            <iframe src="http://www.google.com/recaptcha/api/noscript?k=${g.recaptcha_publickey}"
              height="300" width="500" frameborder="0"></iframe><br/>
            <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea>
            <input type="hidden" name="recaptcha_response_field" value="manual_challenge" />
          </noscript>
        </dd>
 
    </dl>
  <input id="save" name="save" type="submit" class="pretty-button primary" value="Register now &raquo;" />
</form>