2023-02-08 16:25:06 +01:00
{% extends "base" %}
{% block content %}
2023-02-09 15:29:44 +01:00
{% 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")}}
2023-02-08 16:25:06 +01:00
<br />
2023-02-09 15:29:44 +01:00
{% if day.planned_amount_cox > 0%}
Geplante Steuerpersonen: {{ day.planned_amount_cox}}<br />
Geplante Abfahrtszeit: {{ day.planned_starting_time }}<br />
2023-02-09 12:16:04 +01:00
Angemeldete Personen:
<ol>
2023-02-09 15:29:44 +01:00
{% for trip in trips %}
<li>{{ trip.user.name }}</li>
2023-02-09 12:16:04 +01:00
{% endfor %}
</ol>
2023-02-09 15:29:44 +01:00
{% if day.open_registration %}
2023-02-09 12:16:04 +01:00
<details>
<summary class="button">+</summary>
<form method="post" action="/register">
<input type="hidden" name="_method" value="put" />
<input type="hidden" name="day" value="{{ day_string }}" />
<div class="row">
<div class="six columns">
<label for="name">Name</label>
2023-02-09 15:29:44 +01:00
<input class="u-full-width" type="text" id="name" name="name" value="{{ user.name }}" />
2023-02-09 12:16:04 +01:00
</div>
<div class="six columns">
<input class="button-primary" type="submit" value="Speichern">
</div>
</div>
</form>
</details>
2023-02-08 16:25:06 +01:00
{% else %}
Anmeldung an diesem Tag leider nicht möglich (zB bei USI Kursen)
{% endif %}
{% else %}
(Noch) keine Ausfahrt geplant
2023-02-08 22:02:17 +01:00
{% endif %}
2023-02-08 16:25:06 +01:00
<details>
2023-02-08 22:02:17 +01:00
<summary class="button">✎</summary>
2023-02-08 16:25:06 +01:00
<form method="post" action="/day">
<input type="hidden" name="_method" value="put" />
2023-02-08 22:02:17 +01:00
<input type="hidden" name="day" value="{{ day_string }}" />
2023-02-08 16:25:06 +01:00
<div class="row">
<div class="three columns">
<label for="planned_amount_cox">Geplante Steuerpersonen</label>
2023-02-09 15:29:44 +01:00
<input class="u-full-width" type="number" id="planned_amount_cox" name="planned_amount_cox" value="{{ day.planned_amount_cox }}">
2023-02-08 16:25:06 +01:00
</div>
<div class="three columns">
<label for="planned_starting_time">Geplante Abfahrtszeit</label>
2023-02-09 15:29:44 +01:00
<input class="u-full-width" type="time" id="planned_starting_time" name="planned_starting_time" value="{% if day.planned_starting_time %}{{ day.planned_starting_time }}{% else %}17:00{%endif%}">
2023-02-08 16:25:06 +01:00
</div>
<div class="three columns">
<label for="open_registration">Registrierung offen</label>
2023-02-09 15:29:44 +01:00
<input class="u-full-width" type="checkbox" id="open_registration" name="open_registration" {% if not day or day.open_registration %} checked="true" {% endif %}/>
2023-02-08 16:25:06 +01:00
</div>
<div class="three columns">
2023-02-08 22:02:17 +01:00
<input class="button-primary" type="submit" value="Speichern">
2023-02-08 16:25:06 +01:00
</div>
</div>
</form>
</details>
2023-02-08 22:02:17 +01:00
2023-02-08 16:25:06 +01:00
<hr />
{% endfor %}
{% endblock content %}