blob: b6a8f6b1c97e071242d205deeaece41f3dea0466 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<h1>Add Exam</h1>
<form class="form" method="POST" action="?do=exams&action=add">
<div class="form-group">
<label for="location">Location</label>
<select name="location" class="form-control">
{{#locations}}
<option value="{{locationid}}"> {{locationname}} </option>
{{/locations}}
</select>
</div>
<div class="row">
<div class="form-group col-xs-6">
<label for="starttime_date">Start Date</label>
<input class="form-control datepicker" name="starttime_date" />
</div>
<div class="form-group col-xs-6">
<label for="starttime_time">Start Time</label>
<input type="text" class="form-control timepicker" name="starttime_time" />
</div>
</div>
<div class="row">
<div class="form-group col-xs-6">
<label for="endtime_date">End Date</label>
<input class="form-control datepicker" name="endtime_date" />
</div>
<div class="form-group col-xs-6">
<label for="endtime_time">End Time</label>
<input type="texxt" class="form-control timepicker" name="endtime_time" />
</div>
</div>
<input type="hidden" name="token" value="{{token}}" />
<input type="submit" class="btn btn-success" value="Add Exam"></input>
</form>
<script type="application/javascript"><!--
document.addEventListener("DOMContentLoaded", function () {
var dateSettings = {
format: 'yyyy-mm-dd',
weekStart: 1,
startDate: 'today',
};
var timeSettings = {
showSeconds: false,
showMeridian: false
};
$('.datepicker').datepicker(dateSettings);
$('.timepicker').timepicker(timeSettings);
}, false);
// --></script>
|