{% import "includes/macros" as macros %} {% import "includes/forms/log" as log %} {% extends "base" %} {% block content %}

Bootschäden

{% if flash %} {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} {% endif %}

Neuen Schaden eintragen

{{ log::boat_select(only_ones=false) }} {{ macros::input(label='Beschreibung des Schadens', name='desc', type='text', required=true) }} {{ macros::checkbox(label='Boot sperren', name='lock_boat', type='text', required=true) }}

{% for boatdamage in boatdamages %} Boat: {{ boatdamage.boat.name }} Desc: {{ boatdamage.desc }} Schaden eingetragen von {{ boatdamage.user_created.name }} am/um {{ boatdamage.created_at | date(format='%d. %m. %Y %H:%M') }} {% if boatdamage.is_lock %} Boot gesperrt {% endif %} {% if boatdamage.fixed_at %} Repariert von {{ boatdamage.user_fixed.name }} am/um {{ boatdamage.fixed_at | date(format='%d. %m. %Y %H:%M') }} {% elif loggedin_user.is_cox %}
{% if loggedin_user.is_tech %} {% else %} {% endif %}
{% endif %} {% if boatdamage.verified_at %} Verifziert von {{ boatdamage.user_verified.name }} am/um {{ boatdamage.verified_at | date(format='%d. %m. %Y %H:%M') }} {% elif loggedin_user.is_tech and boatdamage.fixed_at %}
{% endif %}
{% endfor %}
{% include "dynamics/sidebar" %} {% endblock content%}