a
This commit is contained in:
@@ -145,30 +145,20 @@
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Time</label>
|
||||
<select name="time-edit" class="form-select bg-dark text-white flex-grow-1" id="time-edit-select">
|
||||
<select class="form-select" name="time" id="editTime">
|
||||
{% 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>
|
||||
<option value="{{ h1 }}">{{ h1 }}</option>
|
||||
<option value="{{ h2 }}">{{ h2 }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
// <input type="text" class="form-control" name="time" id="editTime">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-success">Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
@@ -188,8 +178,6 @@ timeSelect.disabled = tickCheckbox.checked;
|
||||
tickCheckbox.addEventListener('change', function() {
|
||||
timeSelect.disabled = this.checked;
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
document.querySelectorAll('.edit-btn').forEach(button => {
|
||||
button.addEventListener('click', function () {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user