course.html 2.6 KB
Newer Older
1
2
{% from 'macros.html' import lecture_list_item %}
{% from 'macros.html' import valueeditor %}
Andreas Valder's avatar
Andreas Valder committed
3
{% from 'macros.html' import valuedeletebtn %}
4
5
{% from 'macros.html' import valuecheckbox %}
{% from 'macros.html' import preview %}
Andreas Valder's avatar
Andreas Valder committed
6
7
{% extends "base.html" %}
{% block content %}
8
9
<div class="panel panel-default">
	<div class="panel-heading">
Andreas Valder's avatar
Andreas Valder committed
10
		<h1 class="panel-title">{{ valueeditor(['courses',course.id,'title'], course.title)}}<span class="pull-right">{{ valuedeletebtn(['courses',course.id,'deleted']) }}</span></h1>
Andreas Valder's avatar
Andreas Valder committed
11
	</div>
12
	<div class="row panel-body">
Andreas Valder's avatar
Andreas Valder committed
13
14
		<div class="col-xs-12" class="table-condensed">
			<table>
15
16
17
18
				<tbody>
					<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
19
20
21
22
23
24
25
				</tbody>
			</table>
		</div>
		{% if ismod() %}
		<div class="col-xs-12" style="margin-top: 20px">
			<table class="table-condensed">
				<tbody>
26
27
					<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>
Andreas Valder's avatar
Andreas Valder committed
28
					<tr><td>Downloadable:</td><td>{{ valuecheckbox(['courses',course.id,'downloadable'], course.downloadable) }}</td></tr>
29
30
31
32
33
34
					<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>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>
				</tbody>
			</table>
35
		</div>
Andreas Valder's avatar
Andreas Valder committed
36
		{% endif %}
37
38
39
40
41
42
43
44
45
46
47
	</div>
</div>
<div class="panel panel-default">
	<div class="panel-heading">
		<h1 class="panel-title">Videos{% if ismod() %} <a class="btn btn-default" style="margin-right: 5px;" href="{{ url_for('new_lecture', courseid=course.id, ref=request.url) }}">Neuer Termin</a><a class="btn btn-default" style="margin-right: 5px;" href="{{url_for('import_from', id=course['id'])}}">Campus Import</a>{% endif %} <a class="fa fa-rss-square pull-right" aria-hidden="true" href="{{url_for('feed', handle=course.handle)}}"></a> </h1>
	</div>
	<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
48
49
</div>
{% endblock %}