forked from Ruderverein-Donau-Linz/rowt
84 lines
2.8 KiB
Plaintext
84 lines
2.8 KiB
Plaintext
{% extends "base" %}
|
|
{% block content %}
|
|
|
|
{% for day in next_days %}
|
|
{% set day_string = day | date(format="%Y-%m-%d") %}
|
|
{{ day | date(format="%d.%m.%Y")}}
|
|
<br />
|
|
|
|
{% if dwu[day_string] and dwu[day_string].day.planned_amount_cox > 0%}
|
|
{% set cur_day = dwu[day_string].day %}
|
|
{% set_global already_registered = false %}
|
|
Geplante Steuerpersonen: {{ cur_day.planned_amount_cox}}<br />
|
|
Geplante Abfahrtszeit: {{ cur_day.planned_starting_time }}<br />
|
|
|
|
Angemeldete Personen:
|
|
<ol>
|
|
{% for trip in dwu[day_string].trips %}
|
|
<li>
|
|
{% if trip.user.name == name.name %}
|
|
{% set_global already_registered = true %}
|
|
DU
|
|
{% else %}
|
|
{{ trip.user.name }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ol>
|
|
|
|
{% if cur_day.open_registration %}
|
|
<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>
|
|
<input class="u-full-width" type="text" id="name" name="name" value="{% if already_registered == false %}{{ name.name }}{% endif %}" />
|
|
</div>
|
|
<div class="six columns">
|
|
<input class="button-primary" type="submit" value="Speichern">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</details>
|
|
{% else %}
|
|
Anmeldung an diesem Tag leider nicht möglich (zB bei USI Kursen)
|
|
{% endif %}
|
|
{% else %}
|
|
(Noch) keine Ausfahrt geplant
|
|
{% endif %}
|
|
|
|
<details>
|
|
<summary class="button">✎</summary>
|
|
<form method="post" action="/day">
|
|
<input type="hidden" name="_method" value="put" />
|
|
<input type="hidden" name="day" value="{{ day_string }}" />
|
|
<div class="row">
|
|
<div class="three columns">
|
|
<label for="planned_amount_cox">Geplante Steuerpersonen</label>
|
|
<input class="u-full-width" type="number" id="planned_amount_cox" name="planned_amount_cox" value="{{ cur_day.planned_amount_cox | default(value=2) }}">
|
|
</div>
|
|
<div class="three columns">
|
|
<label for="planned_starting_time">Geplante Abfahrtszeit</label>
|
|
<input class="u-full-width" type="time" id="planned_starting_time" name="planned_starting_time" value="{{ cur_day.planned_starting_time | default(value='17:00') }}">
|
|
</div>
|
|
<div class="three columns">
|
|
<label for="open_registration">Registrierung offen</label>
|
|
<input class="u-full-width" type="checkbox" id="open_registration" name="open_registration" {% if not cur_day or cur_day.open_registration %} checked="true" {% endif %}/>
|
|
</div>
|
|
<div class="three columns">
|
|
<input class="button-primary" type="submit" value="Speichern">
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
</details>
|
|
|
|
<hr />
|
|
{% endfor %}
|
|
|
|
|
|
{% endblock content %}
|
|
|