blob: ebbccd6b967ce57feb84b49729fe889a05d2555a (
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
54
55
56
57
58
59
60
61
|
<h1>Add Exam</h1>
<form class="form" method="POST" action="?do=exams&action=add">
<div class="form-group">
<label for="locations">Location</label>
<select id="locations" multiple="multiple" name="locations[]" class="">
{{#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 required class="form-control datepicker" name="starttime_date" />
</div>
<div class="form-group col-xs-6">
<label for="starttime_time">Start Time</label>
<input required 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 required class="form-control datepicker" name="endtime_date" />
</div>
<div class="form-group col-xs-6">
<label for="endtime_time">End Time</label>
<input required type="texxt" class="form-control timepicker" name="endtime_time" />
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<label for="description">Description</label>
<textarea class="form-control" type="textarea" name="description"></textarea>
</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);
$('#locations').multiselect({numberDisplayed: 1});
}, false);
// --></script>
|