Implement layout declaration under view

This commit is contained in:
Jeremy Stretch
2025-10-31 13:48:24 -04:00
parent eef9db5e5a
commit 3fd4664a76
17 changed files with 113 additions and 40 deletions

View File

@@ -122,7 +122,20 @@ Context:
{% plugin_alerts object %}
{% endblock alerts %}
{% block content %}{% endblock %}
{% block content %}
{# Render panel layout declared on view class #}
{% for row in layout.rows %}
<div class="row">
{% for column in row.columns %}
<div class="col">
{% for panel in column.panels %}
{% render_panel panel %}
{% endfor %}
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}
{% block modals %}
{% include 'inc/htmx_modal.html' %}