Introduce modals template block

This commit is contained in:
jeremystretch 2022-01-05 09:21:48 -05:00
parent 01e8017265
commit 2524290099
21 changed files with 83 additions and 29 deletions

View File

@ -103,6 +103,9 @@
</div>
{% endif %}
{# BS5 pop-up modals #}
{% block modals %}{% endblock %}
{# Page footer #}
<footer class="footer container-fluid">
<div class="row align-items-center justify-content-between mx-0">

View File

@ -42,5 +42,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -42,5 +42,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -39,5 +39,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -42,5 +42,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -77,5 +77,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -39,5 +39,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -42,5 +42,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -42,5 +42,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -42,5 +42,8 @@
{% endif %}
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -133,6 +133,8 @@
{% endif %}
</div>
{# Table config form #}
{% table_config_form table table_name="ObjectTable" %}
{% endblock content-wrapper %}
{% block modals %}
{% table_config_form table table_name="ObjectTable" %}
{% endblock modals %}

View File

@ -37,5 +37,8 @@
</div>
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -35,5 +35,8 @@
</div>
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -35,5 +35,8 @@
</div>
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -35,5 +35,8 @@
</div>
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -37,5 +37,8 @@
</div>
</div>
</form>
{% table_config_form table %}
{% endblock %}
{% block modals %}
{% table_config_form table %}
{% endblock modals %}

View File

@ -5,13 +5,14 @@
<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VLANDevicesTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
</div>
</div>
</form>
{% endblock content %}
{% block modals %}
{% table_config_form table %}
{% endblock %}
{% endblock modals %}

View File

@ -5,13 +5,14 @@
<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VLANVirtualMachinesTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
</div>
</div>
</form>
{% endblock content %}
{% block modals %}
{% table_config_form table %}
{% endblock %}
{% endblock modals %}

View File

@ -6,13 +6,11 @@
<form action="{% url 'virtualization:cluster_remove_devices' pk=object.pk %}" method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="DeviceTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
</div>
</div>
<div class="noprint bulk-buttons">
<div class="bulk-button-group">
{% if perms.virtualization.change_cluster %}
@ -23,5 +21,8 @@
</div>
</div>
</form>
{% endblock content %}
{% block modals %}
{% table_config_form table %}
{% endblock %}
{% endblock modals %}

View File

@ -6,13 +6,11 @@
<form method="post">
{% csrf_token %}
{% include 'inc/table_controls_htmx.html' with table_modal="VirtualMachineTable_config" %}
<div class="card">
<div class="card-body" id="object_list">
{% include 'htmx/table.html' %}
</div>
</div>
<div class="noprint bulk-buttons">
<div class="bulk-button-group">
{% if perms.virtualization.change_virtualmachine %}
@ -28,5 +26,8 @@
</div>
</div>
</form>
{% endblock content %}
{% block modals %}
{% table_config_form table %}
{% endblock %}
{% endblock modals %}

View File

@ -37,5 +37,8 @@
<div class="clearfix"></div>
</div>
</form>
{% endblock content %}
{% block modals %}
{% table_config_form table %}
{% endblock %}
{% endblock modals %}