mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
Implement layout declaration under view
This commit is contained in:
@@ -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' %}
|
||||
|
||||
Reference in New Issue
Block a user