Closed
Description
Proposed Changes
Replace all instances of template code which explicitly embeds an HTMX table with the new htmx_table
tag. For instance,
<div class="card-body htmx-container table-responsive"
hx-get="{% url 'circuits:provideraccount_list' %}?provider_id={{ object.pk }}"
hx-trigger="load"
></div>
becomes
{% htmx_table 'circuits:provideraccount_list' provider_id=object.pk %}
Justification
The htmx_table
tag was introduced under #12538 to standardize and simplify our approach for embedding HTMX-backed object tables. Among other benefits, this ensures that the return_url
parameter is passed correctly for every embedded table.