From 2bb564ebcefbb7095c44238f5597c33681e08b7b Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 18 May 2025 14:48:00 +0200 Subject: [PATCH] chore(fallback): do not show registration count for team-only shifts --- shiftregister/fallback/templates/my_fallback_shifts.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shiftregister/fallback/templates/my_fallback_shifts.html b/shiftregister/fallback/templates/my_fallback_shifts.html index 77dac5d..53ddc0e 100644 --- a/shiftregister/fallback/templates/my_fallback_shifts.html +++ b/shiftregister/fallback/templates/my_fallback_shifts.html @@ -73,7 +73,13 @@ Diese Schichtzuteilung wurde maschinell erstellt und ist auch ohne Unterschrift {{ shift.start_at }} {{ shift.duration|duration }} {{ shift.room.name }} - {{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }} + +{% if assignment.restricted %} + Nur Team +{% else %} + {{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }} +{% endif %} + {% for fa in shift.fallbackassignment_set.all %}{% if fa.traded_to %}{{ fa.traded_to.name }}{% else %}{{ fa.team_member.name }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}