hacky-ruadat/templates/index.html.tera

53 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-02-08 16:25:06 +01:00
{% 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 days[day_string] and days[day_string].planned_amount_cox > 0%}
{% set day = days[day_string] %}
Geplante Steuerpersonen: {{ day.planned_amount_cox}}<br />
Geplante Abfahrtszeit: {{ day.planned_starting_time }}<br />
{% if day.open_registration %}
ANMELDEN
{% else %}
Anmeldung an diesem Tag leider nicht möglich (zB bei USI Kursen)
{% endif %}
{% else %}
(Noch) keine Ausfahrt geplant
<details>
<summary class="button">&plus;</summary>
<form method="post" action="/day">
<input type="hidden" name="_method" value="put" />
<input type="hidden" name="day" value="{{ day | date(format="%Y-%m-%d") }}" />
<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">
</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">
</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" checked="true"/>
</div>
<div class="three columns">
<input class="button-primary" type="submit" value="Hinzufügen">
</div>
</div>
</form>
</details>
{% endif %}
<hr />
{% endfor %}
{% endblock content %}