~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/registration/create_user_form.html

  • Committer: Janos Gyerik
  • Date: 2011-08-07 19:28:15 UTC
  • Revision ID: janos@axiom-20110807192815-74cbfd0u9dw782c7
added primitive account creation and login

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
 
 
3
{% load i18n %}
 
4
 
 
5
{% block pagetitle %}{% trans 'Create account' %}{% endblock %}
 
6
 
 
7
{% block content %}
 
8
 
 
9
<form action="" method="post">{% csrf_token %}
 
10
    <div>
 
11
        {% if form.errors %}
 
12
            <p class="error">
 
13
            {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
 
14
            </p>
 
15
        {% endif %}
 
16
        
 
17
        <ul>
 
18
            {% for field in form %}
 
19
            <li>
 
20
                {{ field.label_tag }}
 
21
                <span class="error">{{ field.errors }}</span>
 
22
                <div>{{ field }}</div>
 
23
            </li>
 
24
            {% endfor %}
 
25
        </ul>
 
26
 
 
27
        <p><input type="submit" value="Create account" /></p>
 
28
    </div>
 
29
</form>
 
30
 
 
31
{% endblock %}