From d2945c9cac00dc651238b4ba1b0547d00776bbcf Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 9 Jul 2024 14:37:18 +0700 Subject: [PATCH] 14731 sort / status --- netbox/core/views.py | 4 +++ netbox/templates/core/plugin_list.html | 42 +++++++++----------------- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/netbox/core/views.py b/netbox/core/views.py index 2e8ae27a9..2e336d134 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -806,6 +806,10 @@ class PluginListView(UserPassesTestMixin, View): return render(request, 'core/plugin_list.html', { 'plugins': plugins, + 'sort_choices': dict(PluginSortChoices), + 'status_choices': dict(PluginStatusChoices), + 'sort': sort, + 'status': status, }) diff --git a/netbox/templates/core/plugin_list.html b/netbox/templates/core/plugin_list.html index 384a28e63..1b7d39b72 100644 --- a/netbox/templates/core/plugin_list.html +++ b/netbox/templates/core/plugin_list.html @@ -39,17 +39,15 @@ {% trans "Status" %} @@ -57,28 +55,18 @@