a
This commit is contained in:
@@ -41,11 +41,20 @@
|
||||
|
||||
<div class="col-auto gap-1 ms-auto">
|
||||
<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">
|
||||
{% for hour in range(0, 24) %}
|
||||
<option value="{{ '%02d:00'|format(hour) }}">{{ '%02d:00'|format(hour) }}</option>
|
||||
<option value="{{ '%02d:30'|format(hour) }}">{{ '%02d:30'|format(hour) }}</option>
|
||||
{% set h1 = '%02d:00'|format(hour) %}
|
||||
{% 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 %}
|
||||
</select>
|
||||
<button type="submit" class="btn btn-sm btn-primary">
|
||||
|
||||
Reference in New Issue
Block a user