{% extends "base" %} {% block content %} {% for day_with_trip in data %} {% set day = day_with_trip.day %} {% set day_string = day.day | date(format="%Y-%m-%d") %} {% set trips = day_with_trip.trips %}

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


{% if day.planned_amount_cox > 0%} {% set cox = trips | filter(attribute="user.is_cox", value=true) %} {% set amount_cox = cox | length %} {% set rowers = trips | filter(attribute="user.is_cox", value=false) %} {% if amount_cox < day.planned_amount_cox %} {% set cox_left = day.planned_amount_cox - amount_cox %} Es {{ cox_left | pluralize(singular="wird", plural="werden")}} noch {{ cox_left }} Steuerperson{{ cox_left | pluralize(plural="en")}} gesucht!
{% endif %} Geplante Abfahrtszeit: {{ day.planned_starting_time }}
{{ trips | length }} angemeldete Person{{ trips | length | pluralize(plural="en") }}: {{ cox | length }} Steuerperson{{ cox | length | pluralize(plural="en") }} ({% for c in cox %}{{ c.user.name }} {% endfor %}), {{ rowers | length }} Ruderer:
    {% for r in rowers %}
  1. {{ r.user.name }} (angemeldet seit {{ r.trip.created }})
  2. {% endfor %}
{% if day.open_registration or user.is_cox %}
+
{% else %} Anmeldung an diesem Tag leider nicht möglich (zB bei USI Kursen) {% endif %} {% else %} (Noch) keine Ausfahrt geplant {% endif %} {% if user.is_admin %}
{% endif %}
{% endfor %} {% endblock content %}