+
{{ flash.1 }}
{% endif %}
{% endif %}
-
Ausfahrten
+
Ausfahrten
{% for day in days %}
-
{{ day.day| date(format="%d.%m.%Y") }}
+
{{ day.day| date(format="%d.%m.%Y") }}
{% for planned_event in day.planned_events %}
Planned event '{{ planned_event.name }}'
@@ -32,7 +32,7 @@
{% for cox in planned_event.cox %}
{{ cox }}
{% if cox == loggedin_user.name %}
-
ABMELDEN
+
ABMELDEN
{% endif %}
{% endfor %}
@@ -41,68 +41,130 @@
{% for rower in planned_event.rower%}
{{ rower.name }} (angemeldet seit {{ rower.registered_at }})
{% if rower.name == loggedin_user.name %}
-
ABMELDEN
+
ABMELDEN
{% endif %}
{% endfor %}
{% if planned_event.max_people > planned_event.rower | length %}
-
MITRUDERN
+
MITRUDERN
{% endif %}
{% if loggedin_user.is_cox %}
-
STEUERN
+
STEUERN
{% endif %}
{% if loggedin_user.is_admin %}
-
DELETE
+
DELETE
{% endif %}
{% endfor %}
-
- {% for trip in day.trips %}
-
Ausfahrt von {{ trip.cox_name }}
- Planned starting time: {{ trip.planned_starting_time }}
- Max people: {{ trip.max_people }}
- Notes: {{ trip.notes }}
- Folgende Ruderer haben sich schon angemeldet:
- {% for rower in trip.rower %}
- {{ rower.name }} (angemeldet seit {{ rower.registered_at }})
- {% if rower.name == loggedin_user.name %}
-
ABMELDEN
- {% endif %}
+ {% if day.trips | length > 0 %}
+
+ {% for trip in day.trips %}
+
+
+
{{ trip.planned_starting_time }} Uhr ({{ trip.cox_name }})
+
Details
+
+ {% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id %}
+
MITRUDERN
+ {% endif %}
+ {% for rower in trip.rower %}
+ {% if rower.name == loggedin_user.name %}
+
ABMELDEN
+ {% endif %}
+ {% endfor %}
+
+
+
{% endfor %}
-
- {% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id %}
-
MITRUDERN
- {% endif %}
- {% endfor %}
+
+ {% endif %}
{% if loggedin_user.is_admin %}
-
Add planned event
-
+
+
{% endif %}
{% if loggedin_user.is_cox%}
-
Add trip
-
+
+
{% endif %}