show steering person in logs if not cox
This commit is contained in:
parent
4b07c11bc3
commit
d070c7731a
@ -222,8 +222,10 @@
|
|||||||
<div class="text-sm text-gray-600 dark:text-gray-100">
|
<div class="text-sm text-gray-600 dark:text-gray-100">
|
||||||
Ruderer:
|
Ruderer:
|
||||||
{% for rower in log.rowers -%}
|
{% for rower in log.rowers -%}
|
||||||
{{ rower.name -}}
|
{{ rower.name }}
|
||||||
{% if not loop.last or amount_guests > 0 and log.boat.name != 'Externes Boot' %},{% endif %}
|
{% if rower.id == log.steering_user.id and rower.id != log.shipmaster_user.id %}
|
||||||
|
(Steuerperson){%- endif -%}
|
||||||
|
{%- if not loop.last or amount_guests > 0 and log.boat.name != 'Externes Boot' %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if amount_guests > 0 and log.boat.name != 'Externes Boot' %}
|
{% if amount_guests > 0 and log.boat.name != 'Externes Boot' %}
|
||||||
Gäste
|
Gäste
|
||||||
@ -236,8 +238,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro show_old %}
|
{% endmacro show_old %}
|
||||||
{% macro home(log) %}
|
{% macro home(log) %}
|
||||||
<form class="grid grid-cols-1 gap-3"
|
<form class="grid grid-cols-1 gap-3"
|
||||||
action="/log/{{ log.id }}"
|
action="/log/{{ log.id }}"
|
||||||
method="post">
|
method="post">
|
||||||
@ -274,4 +276,4 @@
|
|||||||
</details>
|
</details>
|
||||||
<input class="btn btn-primary" type="submit" value="Ausfahrt beenden" />
|
<input class="btn btn-primary" type="submit" value="Ausfahrt beenden" />
|
||||||
</form>
|
</form>
|
||||||
{% endmacro home %}
|
{% endmacro home %}
|
||||||
|
Loading…
Reference in New Issue
Block a user