Mercurial > agora
view templates/registration/login.html @ 27:e019ca8e14f6
Clean up templates
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Mon, 28 Jun 2010 22:36:53 -0500 |
parents | 2e7226e90157 |
children | 00ecf3f4ce04 |
line wrap: on
line source
{% extends "whitebox.djhtml" %} {% block boxtitle %} Login {% endblock %} {% block boxcontents %} {% if user.is_authenticated %} <p> You're already logged in as <a href="{{ user.username }}">{{user.username}}</a>. </p> <p> (<a href="{% url auth_logout %}">logout</a>) </p> {% else %} <form method="post" action="."> {% csrf_token %} <table> {{form.as_table}} </table> <input type="submit" value="Log in" /> <input type="hidden" name="next" value="{{ next }}" /> </form> <p> Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>! </p> <p> No login name? <a href="{% url registration_register %}">Register</a>! </p> {% endif %} {% endblock %}