2023-07-23 12:17:57 +02:00
|
|
|
{% import "includes/macros" as macros %}
|
2023-07-26 12:56:19 +02:00
|
|
|
{% import "includes/forms/log" as log %}
|
2023-07-23 12:17:57 +02:00
|
|
|
|
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="max-w-screen-lg w-full">
|
|
|
|
<h1 class="h1">Logbuch</h1>
|
|
|
|
<h2>Neue Ausfahrt starten</h2>
|
2023-07-27 14:38:46 +02:00
|
|
|
{{ log::new(only_ones=loggedin_user.is_cox==false, allow_any_shipmaster=loggedin_user.is_cox, shipmaster=loggedin_user.id) }}
|
2023-07-23 12:17:57 +02:00
|
|
|
|
|
|
|
<h2 style="font-size: 100px">Am Wasser</h2>
|
|
|
|
{% for log in on_water %}
|
2023-07-27 14:38:46 +02:00
|
|
|
{% 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 %}
|
2023-07-23 16:49:14 +02:00
|
|
|
<hr />
|
2023-07-23 12:17:57 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<h2 style="font-size: 100px">Einträge</h2>
|
|
|
|
{% for log in completed %}
|
2023-07-27 14:38:46 +02:00
|
|
|
{{ log::show(log=log, state="completed", only_ones=false) }}
|
2023-07-26 12:56:19 +02:00
|
|
|
<hr />
|
2023-07-23 12:17:57 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock content%}
|