{% load static %} {% if not layout_type %}{% with layout_type="sidebar-left" %}{% endwith %}{% endif %} {% if not sidebar_collapsible %}{% with sidebar_collapsible=True %}{% endwith %}{% endif %} {% if not sidebar_width %}{% with sidebar_width="w-64" %}{% endwith %}{% endif %} {% if not sidebar_collapsed_width %}{% with sidebar_collapsed_width="w-16" %}{% endwith %}{% endif %} {% if not header_height %}{% with header_height="h-16" %}{% endwith %}{% endif %} {% if not footer_height %}{% with footer_height="h-16" %}{% endwith %}{% endif %} {% if spa_enabled == None %}{% with spa_enabled=True %}{% endwith %}{% endif %}
{% if layout_type == "sidebar-left" or layout_type == "sidebar-right" %}
{% if header_content %} {{ header_content|safe }} {% else %}

Header Padrão

Fallback do Layout
{% if spa_enabled %}
Carregando...
{% endif %}
?
{% endif %}
{% if main_content %} {{ main_content|safe }} {% else %}
🚧

Conteúdo Principal Padrão

Nenhum conteúdo principal foi fornecido para este layout

Para desenvolvedores:
Isso indica que o template não conseguiu renderizar o conteúdo correto.
Verifique se os dados estão sendo passados corretamente para o template.

{% endif %}
{% if footer_content or layout_type == "sidebar-left" or layout_type == "sidebar-right" %}
{% if footer_content %} {{ footer_content|safe }} {% else %}

© 2024 Layout Padrão - Conteúdo Fallback

Footer padrão do layout
{% endif %}
{% endif %}
{% elif layout_type == "sidebar-only" %}
{% if main_content %} {{ main_content|safe }} {% else %}

Bem-vindo ao Dashboard

Este é um layout apenas com sidebar.

{% endif %}
{% elif layout_type == "header-only" %}
{% if header_content %} {{ header_content|safe }} {% else %}
L

Dashboard

{% if spa_enabled %}
Carregando...
{% endif %}
U
{% endif %}
{% if main_content %} {{ main_content|safe }} {% else %}

Bem-vindo ao Dashboard

Este é um layout apenas com header.

{% endif %}
{% else %}
{% if main_content %} {{ main_content|safe }} {% else %}

Layout Full

Este é um layout sem sidebar nem header.

{% endif %}
{% endif %}