{% extends 'unfold/layouts/skeleton.html' %}
{% load admin_list i18n unfold static %}
{% block extrastyle %}{{ block.super }}
<link href="{% static 'css/admin.css' %}?v=9.4.0" rel="stylesheet">
{% endblock %}
{% block base %}
<div id="page" class="flex max-w-full min-h-screen {% element_classes 'page' %}">
  {% if not is_popup and is_nav_sidebar_enabled %}{% block nav-sidebar %}{% include "admin/nav_sidebar.html" %}{% endblock %}{% endif %}
  <div id="main" class="bg-white flex flex-col grow min-w-0 dark:bg-base-900 {% element_classes 'main' %}">
    {% block header %}{% include "unfold/helpers/header.html" %}{% endblock %}
    {% block messages %}<div class="px-4"><div class="{% if not cl.model_admin.list_fullwidth and is_fullwidth != '1' %}container{% endif %} mx-auto {% element_classes 'messages' %}">{% include "unfold/helpers/messages.html" %}</div></div>{% endblock messages %}
    <div class="@container px-4 pb-4 grow"><div id="content" class="{% if not cl.model_admin.list_fullwidth and is_fullwidth != '1' %}container{% endif %} mx-auto {% block coltype %}colM{% endblock %} {% element_classes 'content' %}">
      {% if cl %}{% tab_list "changelist" cl.opts %}{% elif opts %}{% tab_list "changeform" opts %}{% endif %}
      {% block content %}{% block object-tools %}{% endblock %}{{ content }}{% endblock %}
      {% block sidebar %}{% endblock %}
    </div></div>
    {% block footer %}{% include "admin/includes/k4w_footer.html" %}{% endblock %}
  </div>
</div>
{% endblock %}
