From fb8952a323ec69fac13a5fc03b76bfc50688304d Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Sat, 16 May 2026 13:49:04 +0200 Subject: [PATCH] feat: pay-type dropdown on /workers/ filter row Co-Authored-By: Claude Opus 4.7 (1M context) --- core/templates/core/workers/list.html | 17 ++++++++++++++--- core/tests.py | 12 ++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/core/templates/core/workers/list.html b/core/templates/core/workers/list.html index 15a9a0c..f60515b 100644 --- a/core/templates/core/workers/list.html +++ b/core/templates/core/workers/list.html @@ -33,7 +33,7 @@
-
+
@@ -48,7 +48,7 @@ {% endfor %}
-
+
+ {# === Pay-type filter === #} + {# DB values are 'daily'/'fixed' (Path-A); label is friendly. #} + {# Empty value = 'All pay types' (unchanged default view). #} +
+ + +
diff --git a/core/tests.py b/core/tests.py index 6dc3a36..2e92f1d 100644 --- a/core/tests.py +++ b/core/tests.py @@ -3294,6 +3294,18 @@ class WorkerListPayTypeFilterTests(TestCase): self.assertIn('Mary Manager', names) self.assertEqual(resp.context['pay_type_filter'], 'banana') + def test_list_renders_pay_type_dropdown_with_selection(self): + # The filter row must render a pay-type