a
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
<form method="post" action="/edit">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Modifier l'élément</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal">swag</button>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
@@ -145,7 +145,23 @@
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Time</label>
|
||||
<input type="text" class="form-control" name="time" id="editTime">
|
||||
<select name="time-edit" class="form-select bg-dark text-white flex-grow-1" id="time-edit-select">
|
||||
{% for hour in range(0, 24) %}
|
||||
{% set h1 = '%02d:00'|format(hour) %}
|
||||
{% set h2 = '%02d:30'|format(hour) %}
|
||||
|
||||
<option value="{{ h1 }}"
|
||||
{% if h1 == data-time %}selected{% endif %}>
|
||||
{{ h1 }}
|
||||
</option>
|
||||
|
||||
<option value="{{ h2 }}"
|
||||
{% if h2 == data-time %}selected{% endif %}>
|
||||
{{ h2 }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
// <input type="text" class="form-control" name="time" id="editTime">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -157,7 +173,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user