{% import "includes/macros" as macros %} {% extends "base" %} {% block content %} {% if flash %} {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} {% endif %}

Logbuch

Neue Ausfahrt starten

{{ macros::select(data=boats, select_name='boat_id') }} {{ macros::select(data=users, select_name='shipmaster', selected_id=loggedin_user.id) }} {{ macros::checkbox(label='shipmaster_only_steering', name='shipmaster_only_steering') }} Departure: Arrival: Destination: {{ macros::input(label="Distanz", name="distance_in_km", type="number", min=0) }} {{ macros::input(label="Kommentar", name="comments", type="text") }} {{ macros::select(data=logtypes, select_name='logtype', default="Normal") }}

Am Wasser

{% for log in on_water %} Bootsname: {{ log.boat }}
Schiffsführer: {{ log.shipmaster_name }}
{% if log.shipmaster_only_steering %} Schiffsführer steuert nur {% endif %} Weggefahren: {{ log.departure }}
Ziel: {{ log.destination }}
Kommentare: {{ log.comments }}
Logtype: {{ log.logtype }}

{% endfor %}

Einträge

{% for log in completed %} Bootsname: {{ log.boat }}
Schiffsführer: {{ log.shipmaster_name }}
{% if log.shipmaster_only_steering %} Schiffsführer steuert nur {% endif %} Weggefahren: {{ log.departure }}
Angekommen: {{ log.arrival}}
Ziel: {{ log.destination }}
Kommentare: {{ log.comments }}
Logtype: {{ log.logtype }}

{% endfor %}
{% endblock content%}