{% extends "base" %} {% block content %}
{% if flash %} {% if flash.0 == "success" %}
{{ flash.1 }}
{% endif %} {% if flash.0 == "error" %}
{{ flash.1 }}
{% endif %} {% endif %}

Ausfahrten

{% for day in days %}

{{ day.day| date(format="%d.%m.%Y") }}

{% for planned_event in day.planned_events %}

Planned event '{{ planned_event.name }}'

Planned amount cox: {{ planned_event.planned_amount_cox }}
Allow guests: {{ planned_event.allow_guests }}
Planned starting time: {{ planned_event.planned_starting_time }}
Max people: {{ planned_event.max_people }}
Notes: {{ planned_event.notes }}
Folgende Steuerpersonen haben sich schon angemeldet: {% for cox in planned_event.cox %} {{ cox }} {% if cox == loggedin_user.name %} Abmelden {% endif %} {% endfor %}
Folgende Ruderer haben sich schon angemeldet: {% for rower in planned_event.rower%} {{ rower.name }} (angemeldet seit {{ rower.registered_at }}) {% if rower.name == loggedin_user.name %} Abmelden {% endif %} {% endfor %} {% if planned_event.max_people > planned_event.rower | length %} Mitrudern {% endif %} {% if loggedin_user.is_cox %} STEUERN {% endif %} {% if loggedin_user.is_admin %} DELETE {% endif %} {% endfor %} {% if day.trips | length > 0 %}
{% for trip in day.trips %}
{{ trip.planned_starting_time }} Uhr ({{ trip.cox_name }})
Details
{% for rower in trip.rower %} {% if rower.name == loggedin_user.name %} Abmelden {% endif %} {% endfor %} {% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id %} Mitrudern {% endif %}
{% endfor %}
{% endif %}
{% if loggedin_user.is_admin %} Event hinzufügen {% endif %} {% if loggedin_user.is_cox%} Ausfahrt hinzufügen {% endif %}
{% endfor %}
{% endblock content %}