blob: 4790facc439f71ee14c28b0c95c516f1ac789ae8 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
{% extends "patchwork/base.html" %}
{% block title %}Patchwork Registration{% endblock %}
{% block heading %}Patchwork Registration{% endblock %}
{% block body %}
{% if request and not error %}
<p>Registration successful!</p>
<p>A confirmation email has been sent to {{ request.email }}. You'll
need to visit the link provided in that email to confirm your
registration.</p>
<pre>{{email}}</pre>
</p>
{% else %}
<p>By creating a patchwork account, you can:<p>
<ul>
<li>create "bundles" of patches</li>
<li>update the state of your own patches</li>
</ul>
<form method="post">
<table class="form registerform">
<tr>
<th colspan="2" class="headerrow">register</th>
</tr>
{% if error %}
<tr>
<td colspan="2">{{ error }}</td>
</tr>
{% endif %}
<tr>
<td>{{ form.first_name.label_tag }}</td>
<td>
{% if form.first_name.errors %}
{{ form.first_name.errors }}
{% endif %}
{{ form.first_name }}
{% if form.first_name.help_text %}
<div class="help_text"/>{{ form.first_name.help_text }}</div>
{% endif %}
</td>
</tr>
<tr>
<td>{{ form.last_name.label_tag }}</td>
<td>
{% if form.last_name.errors %}
{{ form.last_name.errors }}
{% endif %}
{{ form.last_name }}
{% if form.last_name.help_text %}
<div class="help_text"/>{{ form.last_name.help_text }}</div>
{% endif %}
</td>
</tr>
<tr>
<td></td>
<td class="form-help">
Your name is used to identify you on the site
</td>
</tr>
<tr>
<td>{{ form.email.label_tag }}</td>
<td>
{% if form.email.errors %}
{{ form.email.errors }}
{% endif %}
{{ form.email }}
{% if form.email.help_text %}
<div class="help_text"/>{{ form.email.help_text }}</div>
{% endif %}
</td>
</tr>
<tr>
<td></td>
<td class="form-help">
Patchwork will send a confirmation email to this address
</td>
</tr>
<tr>
<td>{{ form.username.label_tag }}</td>
<td>
{% if form.username.errors %}
{{ form.username.errors }}
{% endif %}
{{ form.username }}
{% if form.username.help_text %}
<div class="help_text"/>{{ form.username.help_text }}</div>
{% endif %}
</td>
</tr>
<tr>
<td>{{ form.password.label_tag }}</td>
<td>
{% if form.password.errors %}
{{ form.password.errors }}
{% endif %}
{{ form.password }}
{% if form.password.help_text %}
<div class="help_text"/>{{ form.password.help_text }}</div>
{% endif %}
</td>
</tr>
<tr>
<td colspan="2" class="submitrow">
<input type="submit" value="Register"/>
</td>
</tr>
</table>
</form>
{% endif %}
{% endblock %}
|