]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/register.html
Implement confirmation emails.
[patchwork] / templates / patchwork / register.html
1 {% extends "patchwork/base.html" %}
2
3 {% block title %}Patchwork Registration{% endblock %}
4 {% block heading %}Patchwork Registration{% endblock %}
5
6
7 {% block body %}
8
9 {% if request and not error %}
10  <p>Registration successful!</p>
11  <p>A confirmation email has been sent to {{ request.email }}. You'll
12  need to visit the link provided in that email to confirm your
13  registration.</p>
14  <pre>{{email}}</pre>
15 </p>
16 {% else %}
17 <p>By creating a patchwork account, you can:<p>
18 <ul>
19  <li>create "bundles" of patches</li>
20  <li>update the state of your own patches</li>
21 </ul>
22 <form method="post">
23 <table class="form registerform">
24  <tr>
25   <th colspan="2" class="headerrow">register</th>
26  </tr>
27  {% if error %}
28   <tr>
29    <td colspan="2">{{ error }}</td>
30   </tr>
31  {% endif %}
32
33   <tr>
34    <td>{{ form.first_name.label_tag }}</td>
35    <td>
36 {% if form.first_name.errors %}
37     {{ form.first_name.errors }}
38 {% endif %}
39     {{ form.first_name }}
40 {% if form.first_name.help_text %}
41     <div class="help_text"/>{{ form.first_name.help_text }}</div>
42 {% endif %}
43    </td>
44   </tr>
45    
46   <tr>
47    <td>{{ form.last_name.label_tag }}</td>
48    <td>
49 {% if form.last_name.errors %}
50     {{ form.last_name.errors }}
51 {% endif %}
52     {{ form.last_name }}
53 {% if form.last_name.help_text %}
54     <div class="help_text"/>{{ form.last_name.help_text }}</div>
55 {% endif %}
56    </td>
57   </tr>
58
59   <tr>
60    <td></td>
61    <td class="form-help">
62     Your name is used to identify you on the site
63    </td>
64   </tr>
65    
66   <tr>
67    <td>{{ form.email.label_tag }}</td>
68    <td>
69 {% if form.email.errors %}
70     {{ form.email.errors }}
71 {% endif %}
72     {{ form.email }}
73 {% if form.email.help_text %}
74     <div class="help_text"/>{{ form.email.help_text }}</div>
75 {% endif %}
76    </td>
77   </tr>
78    
79   <tr>
80    <td></td>
81    <td class="form-help">
82     Patchwork will send a confirmation email to this address
83    </td>
84   </tr>
85
86   <tr>
87    <td>{{ form.username.label_tag }}</td>
88    <td>
89 {% if form.username.errors %}
90     {{ form.username.errors }}
91 {% endif %}
92     {{ form.username }}
93 {% if form.username.help_text %}
94     <div class="help_text"/>{{ form.username.help_text }}</div>
95 {% endif %}
96    </td>
97   </tr>
98    
99   <tr>
100    <td>{{ form.password.label_tag }}</td>
101    <td>
102 {% if form.password.errors %}
103     {{ form.password.errors }}
104 {% endif %}
105     {{ form.password }}
106 {% if form.password.help_text %}
107     <div class="help_text"/>{{ form.password.help_text }}</div>
108 {% endif %}
109    </td>
110   </tr>
111    
112  <tr>
113   <td colspan="2" class="submitrow">
114    <input type="submit" value="Register"/>
115   </td>
116  </tr>
117 </table>
118 </form>
119 {% endif %}
120
121 {% endblock %}