Skip to content

Employ the htmx_table template tag to render all HTMX-backed object tables #12776

Closed
@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtopic: UI/UXUser interface or user experience related worktype: housekeepingChanges to the application which do not directly impact the end user

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions