mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-27 01:31:57 +00:00
096f74a3f3
-display an error for nonmatching passwords -display an error for short passwords -dont direct people to http://http://sitename....
60 lines
1.4 KiB
HTML
60 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
registration_form.html | {{ block.super }}
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
|
<h1>registration_form.html</h1>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form action="{% url registration_register %}" method="POST">
|
|
{% for error in form.non_field_errors %}
|
|
<span style="color:red">{{ error }}</span>
|
|
{% endfor %}
|
|
<table>
|
|
<tr>
|
|
<td align="right" valign="top">Username:</td>
|
|
<td>
|
|
{{ form.username }} <br/>
|
|
{% for error in form.username.errors %}
|
|
<span style="color:red">{{ error }}</span>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" valign="top">Email:</td>
|
|
<td>
|
|
{{ form.email }} <br/>
|
|
{% for error in form.email.errors %}
|
|
<span style="color:red">{{ error }}</span>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" valign="top">Password:</td>
|
|
<td>
|
|
{{ form.password1 }} <br/>
|
|
{% for error in form.password1.errors %}
|
|
<span style="color:red">{{ error }}</span>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" valign="top">Password (again):</td>
|
|
<td>
|
|
{{ form.password2 }} <br/>
|
|
{% for error in form.password2.errors %}
|
|
<span style="color:red">{{ error }}</span>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td><input type="submit" value="Register" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
{% endblock %}
|