add kiosk mode

This commit is contained in:
2023-07-27 14:38:46 +02:00
parent b3349c87ff
commit 38300d826a
5 changed files with 149 additions and 22 deletions

View File

@ -7,17 +7,21 @@
<div class="max-w-screen-lg w-full">
<h1 class="h1">Logbuch</h1>
<h2>Neue Ausfahrt starten</h2>
{{ log::new() }}
{{ log::new(only_ones=loggedin_user.is_cox==false, allow_any_shipmaster=loggedin_user.is_cox, shipmaster=loggedin_user.id) }}
<h2 style="font-size: 100px">Am Wasser</h2>
{% for log in on_water %}
{{ log::show(log=log, state="on_water") }}
{% if log.shipmaster == loggedin_user.id %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=false) }}
{% else %}
{{ log::show(log=log, state="on_water", only_ones=true) }}
{% endif %}
<hr />
{% endfor %}
<h2 style="font-size: 100px">Einträge</h2>
{% for log in completed %}
{{ log::show(log=log, state="completed") }}
{{ log::show(log=log, state="completed", only_ones=false) }}
<hr />
{% endfor %}
</div>