mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-06 07:38:16 -06:00
Move model check to inner conditional
This commit is contained in:
parent
a6634a2c8e
commit
8940732a86
@ -15,12 +15,12 @@
|
||||
{% endwith %}
|
||||
</div>
|
||||
|
||||
{% if request.htmx and model %}
|
||||
{% if request.htmx %}
|
||||
{# Include the updated object count for display elsewhere on the page #}
|
||||
<div hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>
|
||||
|
||||
{# Update the bulk action buttons with new query parameters #}
|
||||
{% if actions %}
|
||||
{% if actions and model %}
|
||||
<div class="bulk-action-buttons" hx-swap-oob="outerHTML:.bulk-action-buttons">
|
||||
{% if 'bulk_edit' in actions %}
|
||||
{% bulk_edit_button model query_params=request.GET %}
|
||||
|
Loading…
Reference in New Issue
Block a user