Compare commits
2 Commits
479c69bd2d
...
fd38255d31
Author | SHA1 | Date |
---|---|---|
Daniel Sheppard | fd38255d31 | |
Daniel Sheppard | 5830ae9e9a |
|
@ -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 = {
|
||||
|
|
|
@ -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' %}
|
||||
|
|
Loading…
Reference in New Issue