From 1f53998eb07bbdd67dfd9b2504d5fe7af15a1ad4 Mon Sep 17 00:00:00 2001 From: "Andreas (@xAndy) Zimmermann" Date: Sun, 28 May 2023 11:59:42 +0200 Subject: [PATCH] correctly show checkin state for shifts --- shiftregister/team/templates/partials/shift_box.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/team/templates/partials/shift_box.html b/shiftregister/team/templates/partials/shift_box.html index d525c4f..b0e0c08 100644 --- a/shiftregister/team/templates/partials/shift_box.html +++ b/shiftregister/team/templates/partials/shift_box.html @@ -9,7 +9,7 @@ Belegung: {{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }} {% if shift.checkin_count is not None %}
- Checkin-Status: {% if shift.checkin_count == shift.required_helpers|default:shift.room.required_helpers %}vollständig{% elif shift.checkin_count > 0 %}teilweise{% else %}kein Checkin{% endif %} + Checkin-Status: {% if shift.checkin_count >= shift.required_helpers|default:shift.room.required_helpers %}vollständig{% elif shift.checkin_count > 0 %}teilweise{% else %}kein Checkin{% endif %} {% endif %}