summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates/page-exams.html
blob: 184a69e343452e1d96f5ea7453ae52a2c822c941 (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
<h2>{{lang_allExamPeriods}}</h2>

<div class="slx-space">
	<table class="table">
		<tr>
			<th>{{lang_id}}</th>
			<th>{{lang_locations}}</th>
			<th>{{lang_begin}}</th>
			<th>{{lang_end}}</th>
			<th>{{lang_actions}}</th>
		</tr>
		{{#exams}}
		<tr class="{{rowClass}}">
			<td>{{examid}}</td>
			<td>
				{{locationnames}}
				{{^locationnames}}
				<i>{{lang_global}}</i>
				{{/locationnames}}
				<div class="small">
					{{description}}
					{{^description}}
					<i>{{lang_noDescription}}</i>
					{{/description}}
				</div>
			</td>
			<td class="slx-nowrap">{{starttime_s}}</td>
			<td class="slx-nowrap">{{endtime_s}}</td>
			<td class="slx-nowrap">
				<form method="POST" action="?do=exams&action=delete" {{^liesInPast}}onsubmit="return confirm('{{lang_deleteConfirmation}}');"{{/liesInPast}} >
					{{^liesInPast}}
					<a onclick="slxShow({{starttime}}, {{endtime}})" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-eye-open"></span></a>
					{{/liesInPast}}
					<a href="?do=exams&action=edit&examid={{examid}}" class="btn btn-default btn-sm" >{{lang_edit}}</a>
					<input type="hidden" name="token" value="{{token}}">
					<input type="hidden" name="examid" value="{{examid}}">
					<button class="btn {{btnClass}} btn-sm">{{lang_delete}}</button>
				</form>
			</td>
		</tr>
		{{/exams}}
	</table>
</div>

<div class="btn-group" role="group">
	<a href="?do=exams&action=add" class="btn btn-success">{{lang_addExam}}</a>
</div>