forked from Ruderverein-Donau-Linz/rowt
show amount of guests
This commit is contained in:
parent
88af24db7b
commit
fc42559f1b
@ -178,6 +178,12 @@
|
|||||||
<p>{{ rower.name }}</p>
|
<p>{{ rower.name }}</p>
|
||||||
{% endfor %}
|
{% 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" %}
|
{% 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>
|
<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 %}
|
{% endif %}
|
||||||
@ -235,8 +241,7 @@
|
|||||||
{{ rower.name }}{% if not loop.last or amount_guests > 0 %}, {% endif %}
|
{{ rower.name }}{% if not loop.last or amount_guests > 0 %}, {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if amount_guests > 0 %}
|
{% if amount_guests > 0 %}
|
||||||
{{ amount_guests }}
|
Gäste (ohne Account): {{ amount_guests }}
|
||||||
Gäste (ohne Account)
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user