aboutsummaryrefslogtreecommitdiff
path: root/design/templates/django_registration/registration_form.html
blob: 8573918210bd118414c8482b454540680c6f10c6 (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
{% extends 'base.html' %}
{% block content %}
<form action="" method="post">
{% csrf_token %}
{{ form.non_field_errors }}
{% for field in form %}
<fieldset {% if field.errors %}class="error"{%endif%}>
{{field.label_tag}}
{{field}}
{% if field.label == "Password" %}<span class="helptext">Password should be 8 or more characters.</span>{% endif %}
{% if field.errors %}{{field.errors}}{% endif %}
</fieldset>
{% endfor %}
<p><input class="btn" value="submit" type="submit" /></p>
</form>
<p class="text-muted">Already have an account? <a href="{% url 'login' %}">Log in</a>.</p>
{% endblock %}
{% block extra %}
<div class="overlay-content" id="js-overlay-content" style="display: none;">
    {% include 'lib/login.html' with form=login_form site=site %}
    {{login_form}}
</div>
{{site.name}}
{%endblock%}