{% extends 'zut/layout.html' %} {% load i18n zut %} {% block title %}{{ _("Log in") }}{% endblock %} {% block content %}

{{ _("Log in") }}

{% if next and request.method == 'GET' %} {% if user.is_authenticated %}
{% blocktrans with username=request.user.username %}You are logged in as {{ username }}, but you are not authorized to access this page. Do you want to log in as another user?{% endblocktrans %}
{% else %}
{{ _("You must log in to access this page.") }}
{% endif %} {% endif %}
{% csrf_token %} {% if form.non_field_errors %} {% endif %} {% for field in form %} {{ field | field_horizontal }} {% endfor %}
{% if registration_opened %} {{ _("Register") }} {% endif %}
{% endblock %}