a
This commit is contained in:
@@ -145,25 +145,15 @@
|
|||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">Time</label>
|
<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) %}
|
{% for hour in range(0, 24) %}
|
||||||
{% set h1 = '%02d:00'|format(hour) %}
|
{% set h1 = '%02d:00'|format(hour) %}
|
||||||
{% set h2 = '%02d:30'|format(hour) %}
|
{% set h2 = '%02d:30'|format(hour) %}
|
||||||
|
<option value="{{ h1 }}">{{ h1 }}</option>
|
||||||
<option value="{{ h1 }}"
|
<option value="{{ h2 }}">{{ h2 }}</option>
|
||||||
{% if h1 == data-time %}selected{% endif %}>
|
|
||||||
{{ h1 }}
|
|
||||||
</option>
|
|
||||||
|
|
||||||
<option value="{{ h2 }}"
|
|
||||||
{% if h2 == data-time %}selected{% endif %}>
|
|
||||||
{{ h2 }}
|
|
||||||
</option>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
// <input type="text" class="form-control" name="time" id="editTime">
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -188,8 +178,6 @@ timeSelect.disabled = tickCheckbox.checked;
|
|||||||
tickCheckbox.addEventListener('change', function() {
|
tickCheckbox.addEventListener('change', function() {
|
||||||
timeSelect.disabled = this.checked;
|
timeSelect.disabled = this.checked;
|
||||||
});
|
});
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
document.querySelectorAll('.edit-btn').forEach(button => {
|
document.querySelectorAll('.edit-btn').forEach(button => {
|
||||||
button.addEventListener('click', function () {
|
button.addEventListener('click', function () {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user