Mercurial > agora
view templates/registration/login.html @ 24:2e7226e90157
Many fixes. See detailed description.
- Style errors
- Writer proper 404 and 500 templates
- Make login page redirect back to page being viewed (still buggy?)
- Provide a brief blurb about Agora
- Use tables for registration and login forms (need to be styled)
- Fix typos, grammatical errors.
- Don't use .djhtml extension for some templates
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Mon, 28 Jun 2010 03:00:01 -0500 |
parents | d9658d30b814 |
children | e019ca8e14f6 |
line wrap: on
line source
{% extends "controls.djhtml" %} {% block content %} <div id="info"> <h3> Login </h3> <div class="whitebox"> {% 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 %} </div> </div> {% endblock %}