view templates/registration/login.html @ 41:00ecf3f4ce04

Fix a URL
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Thu, 08 Jul 2010 20:27:23 -0500
parents e019ca8e14f6
children eaa36eaaf74a
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="{% url agora.apps.profile.views.showprofile user %}">
    {{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 %}