summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates/page-exams.html
blob: df6a7dc9e55307878448530fa36d4a6bdc807774 (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
62

<div class="panel panel-default">
	<div class="panel-heading">
		{{lang_allExamPeriods}}
	</div>
	<div class="panel-body">
		<div class="slx-space">
			<table class="table stupidtable">
				<thead>
					<tr>
						<th data-sort="int">{{lang_id}}</th>
						<th data-sort="string">{{lang_locations}}</th>
						<th data-sort="int">{{lang_begin}}</th>
						<th data-sort="int">{{lang_end}}</th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					{{#exams}}
					<tr class="{{rowClass}}">
						<td>{{examid}}</td>
						<td>
							{{locationnames}}
							{{^locationnames}}
							<i>{{lang_global}}</i>
							{{/locationnames}}
							{{#lecturename}}
							<div>
								<b>{{lang_autostart}}</b>: {{lecturename}}
							</div>
							{{/lecturename}}
							<div class="small">
								{{description}}
								{{^description}}
								<i>{{lang_noDescription}}</i>
								{{/description}}
							</div>
						</td>
						<td class="text-nowrap" data-sort-value={{starttime}}>{{starttime_s}}</td>
						<td class="text-nowrap" data-sort-value={{endtime}}>{{endtime_s}}</td>
						<td class="text-nowrap text-right">
							<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 {{edit.disabled}}"><span class="glyphicon glyphicon-edit"></span></a>								<input type="hidden" name="token" value="{{token}}">
								<input type="hidden" name="examid" value="{{examid}}">
								<button {{edit.disabled}} class="btn {{btnClass}} btn-sm"><span class="glyphicon glyphicon-trash"></span></button>
							</form>
						</td>
					</tr>
					{{/exams}}
				</tbody>
			</table>
		</div>
		<div class="text-right">
			<div class="btn-group" role="group">
				<a href="?do=exams&action=add" class="btn btn-success {{perms.exams.edit.disabled}}"><span class="glyphicon glyphicon-plus-sign"></span> {{lang_addExam}}</a>
			</div>
		</div>
	</div>
</div>