This commit is contained in:
2026-02-25 14:44:54 +00:00
parent 1b83098fd0
commit af6515e55f

View File

@@ -41,11 +41,20 @@
<div class="col-auto gap-1 ms-auto"> <div class="col-auto gap-1 ms-auto">
<form method="post" action="/submit-default" class="d-flex gap-1"> <form method="post" action="/submit-default" class="d-flex gap-1">
<span class="text-white">Heure par défaut :</span>
<select name="default-time" class="form-select bg-dark text-white flex-grow-1" id="default-time-select"> <select name="default-time" class="form-select bg-dark text-white flex-grow-1" id="default-time-select">
{% for hour in range(0, 24) %} {% for hour in range(0, 24) %}
<option value="{{ '%02d:00'|format(hour) }}">{{ '%02d:00'|format(hour) }}</option> {% set h1 = '%02d:00'|format(hour) %}
<option value="{{ '%02d:30'|format(hour) }}">{{ '%02d:30'|format(hour) }}</option> {% set h2 = '%02d:30'|format(hour) %}
<option value="{{ h1 }}"
{% if h1 == default_time %}selected{% endif %}>
{{ h1 }}
</option>
<option value="{{ h2 }}"
{% if h2 == default_time %}selected{% endif %}>
{{ h2 }}
</option>
{% endfor %} {% endfor %}
</select> </select>
<button type="submit" class="btn btn-sm btn-primary"> <button type="submit" class="btn btn-sm btn-primary">