2023-07-27 14:38:46 +02:00
|
|
|
{% import "includes/macros" as macros %}
|
|
|
|
{% import "includes/forms/log" as log %}
|
|
|
|
|
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-07-27 15:24:29 +02:00
|
|
|
|
2023-07-30 14:31:15 +02:00
|
|
|
<div class="w-full">
|
|
|
|
<h1 class="h1">Logbuch</h1>
|
|
|
|
|
|
|
|
{% if flash %}
|
2023-07-27 15:24:29 +02:00
|
|
|
{{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
|
2023-07-30 14:31:15 +02:00
|
|
|
{% endif %}
|
2023-07-30 13:02:29 +02:00
|
|
|
|
2023-07-30 15:10:09 +02:00
|
|
|
<div class="w-full grid md:grid-cols-5 gap-3 mt-5">
|
2023-07-30 20:45:16 +02:00
|
|
|
<div class="bg-white rounded-md hidden md:block shadow">
|
2023-07-30 15:10:09 +02:00
|
|
|
<h2 class="h2">Boote</h2>
|
|
|
|
|
2023-07-30 20:45:16 +02:00
|
|
|
<div>
|
2023-07-30 15:10:09 +02:00
|
|
|
{{ log::show_boats(only_ones=false) }}
|
|
|
|
</div>
|
2023-07-30 14:31:15 +02:00
|
|
|
</div>
|
2023-07-30 20:45:16 +02:00
|
|
|
<div class="md:col-span-3 bg-white rounded-md shadow">
|
2023-07-30 15:10:09 +02:00
|
|
|
<h2 class="h2">Neue Ausfahrt</h2>
|
|
|
|
<div class="p-3">
|
2023-10-01 17:57:22 +02:00
|
|
|
{{ log::new(only_ones=false, shipmaster=-1) }}
|
2023-07-30 15:10:09 +02:00
|
|
|
</div>
|
2023-07-30 14:31:15 +02:00
|
|
|
</div>
|
2023-07-30 20:45:16 +02:00
|
|
|
<div class="bg-white rounded-md shadow">
|
2023-07-30 14:31:15 +02:00
|
|
|
<h2 class="h2">Am Wasser</h2>
|
2023-07-30 15:10:09 +02:00
|
|
|
|
2023-07-30 16:59:20 +02:00
|
|
|
<div>
|
2023-09-28 14:53:08 +02:00
|
|
|
{% 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 %}
|
2023-07-30 15:10:09 +02:00
|
|
|
</div>
|
2023-07-30 14:31:15 +02:00
|
|
|
</div>
|
2023-07-30 13:42:33 +02:00
|
|
|
</div>
|
2023-07-27 14:38:46 +02:00
|
|
|
</div>
|
2023-07-30 16:59:20 +02:00
|
|
|
|
2023-09-05 23:03:18 +02:00
|
|
|
<script src="/public/logbook.js"></script>
|
2023-07-27 14:38:46 +02:00
|
|
|
{% endblock content%}
|