show amount of guests

This commit is contained in:
philipp 2023-10-23 21:44:39 +02:00
parent 88af24db7b
commit fc42559f1b

View File

@ -178,6 +178,12 @@
<p>{{ rower.name }}</p>
{% endfor %}
{% set amount_rowers = log.rowers | length %}
{% set amount_guests = log.boat.amount_seats - amount_rowers -1 %}
{% if amount_guests > 0 %}
Gäste (ohne Account): {{ amount_guests }}
{% endif %}
{% if allowed_to_close and state == "on_water" %}
<a href="/log/{{ log.id }}/delete" onclick="return confirm('Willst du diesen Eintrag wirklich löschen? Die Daten gehen verloren :O');">LÖSCHEN</a>
{% endif %}
@ -235,8 +241,7 @@
{{ rower.name }}{% if not loop.last or amount_guests > 0 %}, {% endif %}
{% endfor %}
{% if amount_guests > 0 %}
{{ amount_guests }}
Gäste (ohne Account)
Gäste (ohne Account): {{ amount_guests }}
{% endif %}
</div>
{% endif %}