From 30c7637693889b77b6e7df88a78e102328552c8c Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 17 Apr 2023 19:37:21 +0200 Subject: [PATCH] make 'Steuern' gray if already enough cox enrolled --- templates/index.html.tera | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index 05dbdf7..cce8b3d 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -47,6 +47,8 @@ {% if day.planned_events | length > 0 %}
{% for planned_event in day.planned_events %} + {% set amount_cur_cox = planned_event.cox | length %} + {% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %}
@@ -92,7 +94,7 @@ Abmelden {% else %} - + {% include "includes/cox-icon" %} Steuern @@ -107,8 +109,6 @@
{# --- START List Coxes --- #} {% if planned_event.planned_amount_cox > 0 %} - {% set amount_cur_cox = planned_event.cox | length %} - {% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %} {% if amount_cox_missing > 0 %} {{ macros::box(participants=planned_event.cox, empty_seats=planned_event.planned_amount_cox - amount_cur_cox, header='Steuerleute werden noch benötigt', text='Keine Steuerleute angemeldet') }} {% else %}