From c59a03fa311ed8f81d73498b83ec7eee8d9b43b4 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 17 Dec 2025 16:06:48 +0000 Subject: [PATCH] Add worker-specific constraint snippets with hover details in worker list --- .../templates/rota/partials/worker_list.html | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/djangorota/djangorota/templates/rota/partials/worker_list.html b/djangorota/djangorota/templates/rota/partials/worker_list.html index 7b0e979..e9e44d6 100644 --- a/djangorota/djangorota/templates/rota/partials/worker_list.html +++ b/djangorota/djangorota/templates/rota/partials/worker_list.html @@ -15,6 +15,28 @@ {{ w.options.nwds|default:"[]"|json_script:script_id }} {% endwith %} {% endif %} + {# Show worker-specific constraint snippets (compact tags with hover details) #} + {% if w.options.hard_day_exclusions or w.options.hard_day_dependencies or w.options.forced_assignments or w.options.forced_assignments_by_date or w.options.allowed_multi_shift_sets %} +
+ + {% for it in w.options.hard_day_exclusions %} + HDE + {% endfor %} + {% for it in w.options.hard_day_dependencies %} + HDD + {% endfor %} + {% for it in w.options.forced_assignments %} + FA + {% endfor %} + {% for it in w.options.forced_assignments_by_date %} + FAD + {% endfor %} + {% for it in w.options.allowed_multi_shift_sets %} + AMS + {% endfor %} + +
+ {% endif %}