forked from Ruderverein-Donau-Linz/rowt
use helper variable to compute amount of needed cox
This commit is contained in:
parent
517c6f046f
commit
5aa1deb323
@ -77,7 +77,8 @@
|
||||
<div class="px-2 pt-2" style="margin-top: 63px; margin-bottom: 157px">
|
||||
|
||||
{% if planned_event.planned_amount_cox > 0 %}
|
||||
<div class="bg-primary-600 text-white text-center p-1 mt-1 rounded-t-md">{{ planned_event.planned_amount_cox }} - {{ planned_event.cox | length }} Steuerleute werden benötigt ({{ planned_event.planned_amount_cox }})</div>
|
||||
{% set amount_cur_cox = planned_event.cox | length %}
|
||||
<div class="bg-primary-600 text-white text-center p-1 mt-1 rounded-t-md">{{ planned_event.planned_amount_cox - amount_cur_cox }} Steuerleute werden benötigt ({{ planned_event.planned_amount_cox }})</div>
|
||||
<div class="p-2 border border-t-0 border-primary-600 mb-4 rounded-b-md">
|
||||
{% if planned_event.cox | length > 0 %}
|
||||
{% for cox in planned_event.cox %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user