pytask/templates/user/register.html
author nishanth
Sat, 30 Jan 2010 13:10:11 +0530
changeset 13 4da58abdf6ff
parent 6 94136f9a48bc
permissions -rw-r--r--
renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     1
{% extends 'base.html' %}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     2
{% block content %}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     3
<form action="/accounts/register/" method="post">
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     4
    {{ form.as_p }}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     5
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     6
{% if errors %}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     7
    <p style="color: red;">
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     8
        Please correct the error{{ errors|pluralize }} below.
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
     9
        {% for i in errors %}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    10
            <br>{{ i }}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    11
        {% endfor %}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    12
    </p>
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    13
{% endif %}
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    14
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    15
<input type="submit" value="Submit" />
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    16
</form>
94136f9a48bc added login, logout, and register.
anoop
parents:
diff changeset
    17
{% endblock %}