{% extends "base.html" %} {% comment %} SPDX-License-Identifier: GPL-2.0-or-later {% endcomment %} {% load i18n crispy_forms_tags static %} {% block title %}{% trans "Log in" %}{% endblock %} {% block extracss %} {% endblock %} {% block content %}

{% trans "Log in" %}

{% if user.is_authenticated %}
{% blocktrans trimmed with username=request.user.username %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account, or with a higher permission mask? {% endblocktrans %}
{% endif %} {% if request.resolver_match.view_name == 'admin:login' %}
{% blocktrans trimmed %} You must be logged with a staff account with the higher mask to access Django Admin. {% endblocktrans %}
{% endif %}
{% csrf_token %} {{ form | crispy }} {% trans 'Forgotten your password or username?' %}
{% endblock %}