From 658d55813fe4ac24ff41cf85047288b441f50991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 28 Feb 2024 09:54:29 +0100 Subject: [PATCH] fix: don't render assignment status when in draft --- .../administrative/assignment/index.html.twig | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/templates/administrative/assignment/index.html.twig b/templates/administrative/assignment/index.html.twig index b485e9a..7f415b1 100644 --- a/templates/administrative/assignment/index.html.twig +++ b/templates/administrative/assignment/index.html.twig @@ -63,29 +63,31 @@
- {% if assignment.staffed %} - - - - {% elseif assignment.partlyStaffed %} - - - - {% elseif assignment.inProgress %} - - - + {% if assignment.status == 'draft' %} + {{ icon('hourglass', 'w-4 h-4') }} {% else %} - - - - {% endif %} - {% if assignment.status == 'closed' %} - {{ icon('locked', 'w-4 h-4 text-red-500') }} - {% elseif assignment.status == 'draft' %} - {{ icon('hourglass', 'w-4 h-4 text-yellow-500') }} - {% else %} - {{ icon('unlocked', 'w-4 h-4') }} + {% if assignment.staffed %} + + + + {% elseif assignment.partlyStaffed %} + + + + {% elseif assignment.inProgress %} + + + + {% else %} + + + + {% endif %} + {% if assignment.status == 'closed' %} + {{ icon('locked', 'w-4 h-4 text-red-500') }} + {% else %} + {{ icon('unlocked', 'w-4 h-4') }} + {% endif %} {% endif %}