2023-12-26 20:16:58 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>Register</h1>
|
|
|
|
<form action="" method="post">
|
2023-12-26 20:26:19 +01:00
|
|
|
{{ form.csrf_token }}
|
|
|
|
<p>
|
|
|
|
{{ form.username.label }}
|
|
|
|
{{ form.username() }}
|
|
|
|
{% if form.username.errors %}
|
|
|
|
<ul class="errors">
|
|
|
|
{% for error in form.username.errors %}
|
|
|
|
<li class="danger">{{ error }}</li>
|
2023-12-26 20:16:58 +01:00
|
|
|
{% endfor %}
|
2023-12-26 20:26:19 +01:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{{ form.password.label }}
|
|
|
|
{{ form.password() }}
|
|
|
|
{% if form.password.errors %}
|
|
|
|
<ul class="errors">
|
|
|
|
{% for error in form.password.errors %}
|
|
|
|
<li class="danger">{{ error }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{{ form.password2.label }}
|
|
|
|
{{ form.password2() }}
|
|
|
|
{% if form.password2.errors %}
|
|
|
|
<ul class="errors">
|
|
|
|
{% for error in form.password2.errors %}
|
|
|
|
<li class="danger">{{ error }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{{ form.tnc.label }}
|
|
|
|
{{ form.tnc() }}
|
|
|
|
{% if form.tnc.errors %}
|
|
|
|
<ul class="errors">
|
|
|
|
{% for error in form.tnc.errors %}
|
|
|
|
<li class="danger">{{ error }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<input type="submit" value="Register">
|
|
|
|
</p>
|
2023-12-26 20:16:58 +01:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|