16733 fix bulk edit/delete buttons with quick search

This commit is contained in:
Arthur Hanson 2024-08-12 14:55:23 +07:00
parent 81fe12a7d9
commit 2c2e8d904f

View File

@ -1,5 +1,6 @@
{# Render an HTMX-enabled table with paginator #}
{% load helpers %}
{% load buttons %}
{% load render_table from django_tables2 %}
<div class="htmx-container table-responsive">
@ -16,3 +17,14 @@
{# Include the updated object count for display elsewhere on the page #}
<div class="d-none" hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>
{% if 'bulk_edit' in actions %}
<div class="d-none" hx-swap-oob="innerHTML:.bulk-edit-button">
{% bulk_edit_button model query_params=request.GET %}
</div>
{% endif %}
{% if 'bulk_delete' in actions %}
<div class="d-none" hx-swap-oob="innerHTML:.bulk-delete-button">
{% bulk_delete_button model query_params=request.GET %}
</div>
{% endif %}