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

Bootschäden

Neuen Schaden {% include "includes/plus-icon" %} Neuen Schaden eintragen

{% for boatdamage in boatdamages | sort(attribute="verified") %}
{{ boatdamage.created_at | date(format='%d.%m.%Y') }} ({{ boatdamage.boat.name }}) {% if boatdamage.boat.damage %} (Boot gesperrt) {% endif %}
{{ boatdamage.desc }}
Schaden eingetragen von {{ boatdamage.user_created.name }} am/um {{ boatdamage.created_at | date(format='%d.%m.%Y (%H:%M)') }} {% if boatdamage.fixed_at %} Repariert von {{ boatdamage.user_fixed.name }} am/um {{ boatdamage.fixed_at | date(format='%d.%m.%Y (%H:%M)') }} {% else %} {% if loggedin_user and loggedin_user.allowed_to_steer %}
{% if loggedin_user and "tech" in loggedin_user.roles %} {% else %} {% endif %}
{% endif %} {% endif %} {% if boatdamage.verified_at %} Verifiziert von {{ boatdamage.user_verified.name }} am/um {{ boatdamage.verified_at | date(format='%d.%m.%Y (%H:%M)') }} {% else %} {% if loggedin_user and "tech" in loggedin_user.roles and boatdamage.fixed_at %}
{% endif %} {% endif %}
{% endfor %}
{% endblock content %}