course.html 2.07 KB
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1
{% from 'macros.html' import lecture_list_item %}
2
{% from 'macros.html' import valueeditor %}
Andreas Valder's avatar
Andreas Valder committed
3
{% from 'macros.html' import valuecheckbox %}
Andreas Valder's avatar
Andreas Valder committed
4
5
6
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% block content %}
7
8
<div class="panel panel-default">
	<div class="panel-heading">
9
		<h1 class="panel-title">{{ valueeditor(['courses',course.id,'title'], course.title)}}</h1>
Andreas Valder's avatar
Andreas Valder committed
10
	</div>
Andreas Valder's avatar
Andreas Valder committed
11
	<div class="row panel-body">
Andreas Valder's avatar
Andreas Valder committed
12
13
14
		<div class="col-xs-12">
			<table class="table-condensed">
				<tbody>
15
16
17
					<tr><td>Semester:</td><td>{{ valueeditor(['courses',course.id,'semester'], course.semester) }}</td></tr>
					<tr><td>Veranstalter:</td><td>{{ valueeditor(['courses',course.id,'organizer'], course.organizer) }}</td></tr>
					<tr><td>Bemerkungen:</td><td>{{ valueeditor(['courses',course.id,'description'], course.description) }}</td></tr>
Andreas Valder's avatar
Andreas Valder committed
18
19
20
21
22
23
24
25
26
					{% if ismod() %}
					<tr><td>Sichtbar:</td><td>{{ valuecheckbox(['courses',course.id,'visible'], course.visible) }}</td></tr>
					<tr><td>Gelistet:</td><td>{{ valuecheckbox(['courses',course.id,'listed'], course.listed) }}</td></tr>
					<tr><td>Short:</td><td>{{ valueeditor(['courses',course.id,'short'], course.short) }}</td></tr>
					<tr><td>Handle:</td><td>{{ valueeditor(['courses',course.id,'handle'], course.handle) }}</td></tr>
					<tr><td>Downloadable:</td><td>{{ valuecheckbox(['courses',course.id,'downloadable'], course.downloadable) }}</td></tr>
					<tr><td>Thema:</td><td>{{ valueeditor(['courses',course.id,'subject'], course.subject) }}</td></tr>
					<tr><td>Zuständig:</td><td>{{ valueeditor(['courses',course.id,'responsible'], course.responsible) }}</td></tr>
					{% endif %}
Andreas Valder's avatar
Andreas Valder committed
27
28
29
				</tbody>
			</table>
		</div>
Andreas Valder's avatar
Andreas Valder committed
30
	</div>
Andreas Valder's avatar
Andreas Valder committed
31
</div>
32
33
34
<div class="panel panel-default">
	<div class="panel-heading">
		<h1 class="panel-title">Videos</h1>
35
36
37
		{% if ismod() %}
				<a class="btn btn-default" style="margin-right: 5px;" href="todo">Neuer Termin</a>
		{% endif %}
Andreas Valder's avatar
Andreas Valder committed
38
	</div>
39
40
41
42
43
	<ul class="list-group lectureslist">
		{% for l in lectures %}
			{{ lecture_list_item(l,videos|selectattr('lecture_id','equalto',l.id)|list) }}
		{% endfor %}
	</ul>
Andreas Valder's avatar
Andreas Valder committed
44
45
</div>
{% endblock %}