{% extends "admin/base.html" %} {% load i18n static daisy_theme %} {% block title %}{% translate 'Log in' %} | {% daisy_config "SITE_TITLE" "Django Administration" %}{% endblock %} {% block standalone_content %}
{% include "admin/includes/theme_toggle.html" %}
{% if daisy_theme.SITE_LOGO %} Logo {% else %}
{% daisy_icon "layers" "w-6 h-6" %}
{% endif %}

{% daisy_config "SITE_HEADER" "Daisy Theme Admin" %}

{% translate 'Please enter your credentials to access the administration panel.' %}

{% if form.errors and not form.non_field_errors %}
{% daisy_icon "alert-circle" "w-4 h-4" %} {% translate 'Please correct the errors below.' %}
{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}
{% daisy_icon "alert-circle" "w-4 h-4" %} {{ error }}
{% endfor %} {% endif %} {% if user.is_authenticated %}
{% daisy_icon "alert-circle" "w-4 h-4" %} {% blocktranslate trimmed %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktranslate %}
{% endif %}
{% csrf_token %}
{% daisy_icon "user" "w-4 h-4" %}
{% if form.username.errors %} {% endif %}
{% daisy_icon "key" "w-4 h-4" %}
{% if form.password.errors %} {% endif %}

{% daisy_config "FOOTER_TEXT" "Powered by django-daisy-theme" %}

{% endblock %}