{% extends 'zut/layout.html' %} {% load zut_tags i18n %} {% 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 %}
{% if field.errors %} {{ field | field_attr:'form-control is-invalid' }}
{% for error in field.errors %} {% if not forloop.first %}
{% endif %}{{ error }} {% endfor %}
{% else %} {{ field | field_attr:'form-control' }} {% endif %}
{% endfor %}
{% endblock %}