Add functionality to automatically adjust end date for new calendar events to 1 hr after the start date

This commit is contained in:
Marcus Hill
2022-12-17 22:20:23 +00:00
parent 016d666dda
commit 3e82075083
2 changed files with 28 additions and 4 deletions

View File

@@ -69,11 +69,10 @@
<label>Start / End <strong class="text-danger">*</strong></label>
<div class="form-row">
<div class="col-md-6 mb-3">
<input type="datetime-local" class="form-control form-control-sm" name="start" required>
<input type="datetime-local" class="form-control form-control-sm" id="event_add_start" name="start" required onblur="updateIncrementEndTime()">
</div>
<div class="col-md-6 mb-3">
<input type="datetime-local" class="form-control form-control-sm" name="end"
required>
<input type="datetime-local" class="form-control form-control-sm" id="event_add_end" name="end" required>
</div>
</div>