course.html 2.34 KB
Newer Older
1
2
3
4
{% from 'macros.html' import lecture_list_item %}
{% from 'macros.html' import valueeditor %}
{% from 'macros.html' import valuecheckbox %}
{% from 'macros.html' import preview %}
Andreas Valder's avatar
Andreas Valder committed
5
6
{% extends "base.html" %}
{% block content %}
7
8
9
<div class="panel panel-default">
	<div class="panel-heading">
		<h1 class="panel-title">{{ valueeditor(['courses',course.id,'title'], course.title)}}</h1>
Andreas Valder's avatar
Andreas Valder committed
10
	</div>
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	<div class="row panel-body">
		<div class="col-xs-12">
			<table class="table-condensed">
				<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>
					{% 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 %}
				</tbody>
			</table>
29
		</div>
30
31
32
33
34
35
36
37
38
39
40
	</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
41
42
</div>
{% endblock %}