-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1356 from BCStudentSoftwareDevTeam/1267-timepicke…
…r-issue Fix Firefox Timepicker on Create Event
- Loading branch information
Showing
2 changed files
with
82 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,14 +31,14 @@ | |
{{super()}} | ||
<script type="module" src="/static/js/createEvents.js"></script> | ||
<script type="module" src="/static/js/displayFilesMacro.js"></script> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script> | ||
{% endblock %} | ||
|
||
{% block styles %} | ||
{{super()}} | ||
<link href="https://cdn.jsdelivr.net/gh/kartik-v/[email protected]/css/fileinput.min.css" media="all" | ||
{{super()}} <link href="https://cdn.jsdelivr.net/gh/kartik-v/[email protected]/css/fileinput.min.css" media="all" | ||
rel="stylesheet" type="text/css" /> | ||
<link rel="stylesheet" href="/static/css/createEvent.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"> | ||
<link rel="stylesheet" href="/static/css/createEvent.css"> | ||
{% endblock %} | ||
|
||
{% block app_content %} | ||
|
@@ -99,32 +99,32 @@ <h1 id="pageTitle">{{page_title}}</h1> | |
<div class="row col-md-12"> | ||
<div class="form-group col-md-6"> | ||
<label class="form-label me-2" for="startTime-{{pageLocation}}"><strong>Start Time</strong></label> | ||
<div class="input-group"> | ||
<div class="input-group flatpickr"> | ||
{% if eventData.timeStart %} | ||
{% set startTime = eventData.timeStart %} | ||
{% else %} | ||
{% set startTime = "12:00" %} | ||
{% endif %} | ||
<input autocomplete="off" type="time" class="form-control timepicker startTime" value="{{startTime}}" | ||
name="timeStart" aria-describedby="timeIcon1" placeholder="Pick a start time" id="startTime-{{pageLocation}}" | ||
name="timeStart" aria-describedby="timeIcon1" placeholder="Pick a start time" data-input id="startTime-{{pageLocation}}" | ||
data-page-location="{{pageLocation}}" required /> | ||
<span class="input-group-text timeIcons" id="timeIcon1-{{pageLocation}}" hidden><i | ||
class="bi bi-clock"></i></span> | ||
<a class="input-group-text timeIcons" id="timeIcon1-{{pageLocation}}" data-toggle data-td-target="#startTime-{{pageLocation}}" hidden><i | ||
class="bi bi-clock"></i></a> | ||
</div> | ||
</div> | ||
<div class='form-group col-md-6'> | ||
<label class="form-label me-2" for="endTime-{{pageLocation}}"><strong>End Time</strong></label> | ||
<div class="input-group"> | ||
<div class="input-group flatpickr"> | ||
{% if eventData.timeEnd %} | ||
{% set endTime = eventData.timeEnd %} | ||
{%else%} | ||
{% set endTime = "13:00" %} | ||
{% endif %} | ||
<input autocomplete="off" type="time" class="form-control timepicker endTime" value="{{endTime}}" name="timeEnd" | ||
<input autocomplete="off" type="time" class="form-control timepicker endTime" data-input value="{{endTime}}" name="timeEnd" | ||
aria-describedby="timeIcon2" placeholder="Pick an end time" class="startTime" id="endTime-{{pageLocation}}" | ||
data-page-location="{{pageLocation}}" required /> | ||
<span class="input-group-text timeIcons" id="timeIcon2-{{pageLocation}}" hidden><i | ||
class="bi bi-clock"></i></span> | ||
<a class="input-group-text timeIcons" id="timeIcon2-{{pageLocation}}" data-toggle hidden><i | ||
class="bi bi-clock"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -489,32 +489,33 @@ <h5 class="modal-title">This is an event with multiple time offerings.</h5> | |
<div class="form-group col-md-3"> | ||
<label class="form-label me-2" for="multipleOfferingStartTime-{{pageLocation}}"><strong>Start | ||
Time</strong></label> | ||
<div class="input-group"> | ||
<div class="input-group flatpickr" id="flatpickr1"> | ||
{% if eventData.timeStart %} | ||
{% set startTime = eventData.timeStart %} | ||
{% else %} | ||
{% set startTime = "12:00" %} | ||
{% endif %} | ||
<input autocomplete="off" type="time" class="form-control timepicker multipleOfferingStartTime" | ||
value="{{startTime}}" name="timeStart" aria-describedby="timeIcon1" placeholder="Pick a start time" | ||
value="{{startTime}}" name="timeStart" aria-describedby="timeIcon1" data-input placeholder="Pick a start time" | ||
id="multipleOfferingStartTime-{{pageLocation}}" data-page-location="{{pageLocation}}" required /> | ||
<span class="input-group-text timeIcons" id="timeIcon1-{{pageLocation}}" hidden><i | ||
class="bi bi-clock"></i></span> | ||
<a class="input-group-text timeIcons" data-toggle id="timeIcon1-{{pageLocation}}" | ||
hidden><i | ||
class="bi bi-clock"></i></a> | ||
</div> | ||
</div> | ||
<div class='form-group col-md-3'> | ||
<label class="form-label me-2" for="endTime-{{pageLocation}}"><strong>End Time</strong></label> | ||
<div class="input-group pb-5"> | ||
<div class="input-group flatpickr" id="flatpickr2"> | ||
{% if eventData.timeEnd %} | ||
{% set endTime = eventData.timeEnd %} | ||
{%else%} | ||
{% set endTime = "13:00" %} | ||
{% endif %} | ||
<input autocomplete="off" type="time" class="form-control timepicker multipleOfferingEndTime" | ||
value="{{endTime}}" name="timeEnd" aria-describedby="timeIcon2" placeholder="Pick an end time" | ||
value="{{endTime}}" name="timeEnd" aria-describedby="timeIcon2" data-input placeholder="Pick an end time" | ||
id="multipleOfferingEndTime-{{pageLocation}}" data-page-location="{{pageLocation}}" required /> | ||
<span class="input-group-text timeIcons" id="timeIcon2-{{pageLocation}}" hidden><i | ||
class="bi bi-clock"></i></span> | ||
<a class="input-group-text timeIcons" id="timeIcon2-{{pageLocation}}" data-toggle hidden><i | ||
class="bi bi-clock"></i></a> | ||
</div> | ||
</div> | ||
<div class="col-md-1 deleteMultipleOfferingWrapper"> | ||
|