From 5aa1deb32359fb50f1c1371e3c09062950008f90 Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 6 Apr 2023 19:21:40 +0200 Subject: [PATCH] use helper variable to compute amount of needed cox --- templates/index.html.tera | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index ad9ba52..6747cd9 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -77,7 +77,8 @@
{% if planned_event.planned_amount_cox > 0 %} -
{{ planned_event.planned_amount_cox }} - {{ planned_event.cox | length }} Steuerleute werden benötigt ({{ planned_event.planned_amount_cox }})
+ {% set amount_cur_cox = planned_event.cox | length %} +
{{ planned_event.planned_amount_cox - amount_cur_cox }} Steuerleute werden benötigt ({{ planned_event.planned_amount_cox }})
{% if planned_event.cox | length > 0 %} {% for cox in planned_event.cox %}