{% 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 }}


{% csrf_token %} {% if form.errors and not form.non_field_errors %}
{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
{% endif %} {% if form.get_user and not form.has_otp_device and form.auth_two_factor_method == 'strict' %} {% else %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}
{{ error }}
{% endfor %} {% endif %} {% endif %} {% if form.get_user %} {% if form.has_otp_device %}
{{ form.otp_device|add_class:"form-control" }} {{ form.otp_device.errors }}
{{ form.otp_token|add_class:"form-control" }} {{ form.otp_token.errors }}
{% else %} {% if form.auth_two_factor_method == 'strict' %} {% endif %} {% endif %}
 
{% else %}
{{ form.username.errors }}
{{ form.password.errors }}
{% endif %}
{% endblock %} {% block initial-footer %} {% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %}

{% trans 'Forgotten your password or username?' %}

{% endif %} {% endblock %}