summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates/page-edit-exam.html
blob: 61848ec201c6c05528422e40de4596841cfd9e25 (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>{{lang_editExam}}: </h1>

<form class="form" method="POST" action="?do=exams&action=edit&examid={{exam.examid}}">
    <div class="form-group">
        <label for="locations">{{lang_location}}</label>
        <select id="locations" multiple="multiple" name="locations[]" class="">
            {{#locations}}
            <option value="{{locationid}}" {{#selected}}selected{{/selected}} > {{locationname}} </option>
            {{/locations}}
        </select>
    </div>

    <div class="row">
        <div class="form-group col-xs-6">
            <label for="starttime_date">{{lang_begin_date}}</label>
            <input required class="form-control datepicker" name="starttime_date" value="{{exam.starttime_date}}"/>
        </div>
        <div class="form-group col-xs-6">
            <label for="starttime_time">{{lang_begin_time}}</label>
            <input required type="text" class="form-control timepicker" name="starttime_time" value="{{exam.starttime_time}}" />
        </div>
    </div>

    <div class="row">
        <div class="form-group col-xs-6">
            <label for="endtime_date">{{lang_end_date}}</label>
            <input required class="form-control datepicker" name="endtime_date" value="{{exam.endtime_date}}"/>
        </div>
        <div class="form-group col-xs-6">
            <label for="endtime_time">{{lang_end_time}}</label>
            <input required type="texxt" class="form-control timepicker" name="endtime_time" value="{{exam.endtime_time}}"/>
        </div>
    </div>
    <div class="row">
        <div class="form-group col-xs-12">
            <label for="description">{{lang_description}}</label>
            <textarea class="form-control" type="textarea" name="description">{{exam.description}}</textarea>
        </div>
    </div>

    <input type="hidden" name="token" value="{{token}}" />
    <input type="submit" class="btn btn-success" value="{{lang_saveExam}}"></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>