diff --git a/netbox/netbox/views/generic/bulk_views.py b/netbox/netbox/views/generic/bulk_views.py index cf07797dd..dc214e61a 100644 --- a/netbox/netbox/views/generic/bulk_views.py +++ b/netbox/netbox/views/generic/bulk_views.py @@ -161,10 +161,17 @@ class ObjectListView(BaseMultiObjectView, ActionsMixin, TableMixin): # Render the objects table table = self.get_table(self.queryset, request, has_bulk_actions) - # Check for filterset_form on this view, if a form exists, apply to context and table, otherwise set to None + # Check for filterset_form on this view, if a form exists + # * Apply to context for use by the filter form tab and initialize the form + # * Apply to the table for use by the table and initialize a separate instance of the form for use by the table + # column filters + # * Otherwise set to None if self.filterset_form: filterset_form = self.filterset_form(request.GET) - table.filterset_form = filterset_form + table.filterset_form = self.filterset_form(request.GET) + else: + filterset_form = None + table.filterset_form = None # If this is an HTMX request, return only the rendered table HTML if request.htmx: diff --git a/netbox/project-static/styles/custom/_misc.scss b/netbox/project-static/styles/custom/_misc.scss index 00c26e022..c8ace4392 100644 --- a/netbox/project-static/styles/custom/_misc.scss +++ b/netbox/project-static/styles/custom/_misc.scss @@ -29,8 +29,13 @@ span.color-label { opacity: 0; } -// Override column filter form dropdown +// Override bootstrap "dropdown" positioning and display for column filters .column-filter { position: static; display: inline; +} + +// Override mdi font-size to adjust filter icon size +.btn.dropdown-toggle > .mdi-filter-settings { + font-size: 1.25rem; } \ No newline at end of file diff --git a/netbox/templates/inc/table_header_filter_dropdown.html b/netbox/templates/inc/table_header_filter_dropdown.html index 4e76bcb54..5242bc4b6 100644 --- a/netbox/templates/inc/table_header_filter_dropdown.html +++ b/netbox/templates/inc/table_header_filter_dropdown.html @@ -2,8 +2,7 @@ {% if form_field %}