{% 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=coxes, 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.name }}
Schiffsführer: {{ log.shipmaster_user.name }}
{% if log.shipmaster_only_steering %} Schiffsführer steuert nur {% endif %} Weggefahren: {{ log.departure }}
Ziel: {{ log.destination }}
Kommentare: {{ log.comments }}
Logtype: {{ log.logtype }}
Ruderer: {% for rower in log.rowers %} {{ rower.name }} {% endfor %} {% set amount_rowers = log.rowers | length %} {% set amount_guests = log.boat.amount_seats - amount_rowers -1 %} {{ amount_guests }} Gäste (ohne Account) {% if log.shipmaster == loggedin_user.id %}
Destination: {{ macros::input(label="Distanz", name="distance_in_km", id="distance_in_km_home", type="number", min=0, value=log.distance_in_km) }} {{ macros::input(label="Kommentar", name="comments", type="text", value=log.comments) }} {{ macros::select(data=logtypes, select_name='logtype', default="Normal", selected_id=log.logtype) }}
{% endif %}
{% endfor %}

Einträge

{% for log in completed %} Bootsname: {{ log.boat.name }}
Schiffsführer: {{ log.shipmaster_user.name }}
{% if log.shipmaster_only_steering %} Schiffsführer steuert nur {% endif %} Ruderer: {% for rower in log.rowers %} {{ rower.name }} {% endfor %} {% set amount_rowers = log.rowers | length %} {% set amount_guests = log.boat.amount_seats - amount_rowers -1 %} {{ amount_guests }} Gäste (ohne Account) Weggefahren: {{ log.departure }}
Angekommen: {{ log.arrival}}
Ziel: {{ log.destination }}
Km: {{ log.distance_in_km }}
Kommentare: {{ log.comments }}
Logtype: {{ log.logtype }}

{% endfor %}
{% endblock content%}