[TASK] text no boats on water

This commit is contained in:
Marie Birner 2023-09-28 14:53:08 +02:00
parent 929785b5c5
commit 85d35eaf41
3 changed files with 22 additions and 11 deletions

View File

@ -6,8 +6,11 @@
# Notes / Bugfixes
## Frontend
- [] support esc to close sidebar
- [] after an hour(?) of inactivity -> show large popup w/ "maybe old data (ignore) (reload page)" (ignore bc maybe use is actively doing something -> don't throw input away!)
- [] reload page -> don't throw input away!
## Backend
- [] variable for kiosk mode (needed especially for header)
- [] Logbuch form -> can't be submitted if arrival date is set (needed for Nachtrag)
# Nice to have
## Frontend

View File

@ -30,9 +30,13 @@
<h2 class="h2">Am Wasser</h2>
<div>
{% for log in on_water %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=false) }}
{% endfor %}
{% if on_water | length > 0 %}
{% for log in on_water %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=false) }}
{% endfor %}
{% else %}
<p class="p-3 text-center">Kein Boot am Wasser</p>
{% endif %}
</div>
</div>
</div>

View File

@ -31,13 +31,17 @@
<div class="bg-white rounded-md shadow">
<h2 class="h2">Am Wasser</h2>
{% for log in on_water %}
{% if log.shipmaster == loggedin_user.id %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=loggedin_user.is_cox==false) }}
{% else %}
{{ log::show(log=log, state="on_water", only_ones=true) }}
{% endif %}
{% endfor %}
{% if on_water | length > 0 %}
{% for log in on_water %}
{% if log.shipmaster == loggedin_user.id %}
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=loggedin_user.is_cox==false) }}
{% else %}
{{ log::show(log=log, state="on_water", only_ones=true) }}
{% endif %}
{% endfor %}
{% else %}
<p class="p-3 text-center">Kein Boot am Wasser</p>
{% endif %}
</div>
</div>
</div>