{% extends "commoncontent/base.html" %} {% load commoncontent %} {% block extra_head %} {% endblock extra_head %} {% block content %}
{% comment %} TODO Use bootstrap classes in error display {% endcomment %} {% if form.errors %}

Your username and password didn't match. Please try again.

{% endif %} {% if next %} {% if user.is_authenticated %}

Your account doesn't have access to the requested page. To proceed, please login with an account that has access.

{% else %}

You must sign in to see the requested page.

{% endif %} {% endif %}
{% csrf_token %}

Please sign in

{{ form.username|add_classes:"form-control" }} {{ form.username.label_tag }}
{{ form.password|add_classes:"form-control" }} {{ form.password.label_tag }}
{# Assumes you set up the password_reset view in your URLconf #}

Forgot password?

{% endblock content %}