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 %}