{% extends "admin/base_initial.html" %} {% load i18n static admin_kubi_tags %} {% block bodyclass %}{{ block.super }} login{% endblock %} f {% block initial-header %} {{ block.super }} {% if user.is_authenticated %}

{% blocktrans trimmed %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktrans %}

{% endif %} {% endblock %} {% block initial-content %}

{% trans 'Administration' %} - {{ title }}


{% if form.user_device %}

{{ form.qrcode|safe }}


{% else %}

{% blocktranslate trimmed %} This account requires a two factor device. {% endblocktranslate %}

{% csrf_token %}
{% if request.GET.u %} {{ form.username.label_tag }}

{{ request.GET.u }}

{% else %} {{ form.username.errors }} {{ form.username.label_tag }} {{ form.username|add_class:"form-control" }} {% endif %}
{{ form.password.errors }} {{ form.password.label_tag }} {{ form.password|add_class:"form-control" }}
{% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %}
{% endif %} {% endblock %}