Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Sheppard fd38255d31 Rename swap variable back and remove join 2024-04-25 13:04:37 -05:00
Daniel Sheppard 5830ae9e9a Rename variable for doing OOB swaps on the table 2024-04-25 12:53:54 -05:00
2 changed files with 4 additions and 5 deletions

View File

@ -181,14 +181,13 @@ class ObjectListView(BaseMultiObjectView, ActionsMixin, TableMixin):
# Hide selection checkboxes
if 'pk' in table.base_columns:
table.columns.hide('pk')
applied_filters = render_to_string('inc/applied_filters_pane.html', {
filter_chits = render_to_string('inc/applied_filters_pane.html', {
'model': model,
'filter_form': filterset_form,
}, request)
return render(request, 'htmx/table.html', {
'table': table,
'applied_filters': applied_filters,
'filter_chits': filter_chits,
})
context = {

View File

@ -2,8 +2,8 @@
{% load helpers %}
{% load render_table from django_tables2 %}
{# Applied filters for OOB Swap #}
{{ applied_filters }}
{# OOB Swaps to update various components #}
{{ filter_chits }}
{% with preferences|get_key:"pagination.placement" as paginator_placement %}
{% if paginator_placement == 'top' or paginator_placement == 'both' %}