registration_form.html
804 Bytes
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
{% extends "base.html" %}
{% load i18n %}
{% load url from future %}
{% block extrahead %}
<style>
label {
vertical-align: top;
width: 100px;
display: inline-block;
}
</style>
{% endblock %}
{% block title %}{% trans 'Registration' %}{% endblock %}
{% block content %}<div id="content-main">
<form action="" method="post">{% csrf_token %}
<div>
{% if form.errors %}
<p class="errornote">
{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
{% endif %}
<h1>{% trans 'Registration' %}</h1>
{{ form.as_p }}
<div class="submit-row">
<input type="submit" value="{% trans 'Add user' %}" class="default" />
</div>
</div>
</form></div>
{% endblock %}