{% extends "base.html" %} {% block content %}

{{ course.term.name }} / {{ course.title }}{% if preview %}(disable preview mode){% elif is_lecturer %}(enable preview mode){% endif %}

{% if is_admin %} {% if form.errors %}

There was an issue storing the course settings, see details on form below

{% elif form.is_saved %}

Course settings updated successfully

{% endif %} {% endif %} {% if course.description %}

{{ course.description|linebreaksbr }}


{% endif %} {% if videos %}

Videos


{% endif %} {% if is_lecturer %}

Upload new video

{% csrf_token %}


{% endif %} {% if attachments %}

Files


{% endif %} {% if is_lecturer %}

Upload new file

{% csrf_token %}


{% endif %} {% if not course.video_set.all and not course.courseattachment_set.all and not is_lecturer %} No content available (yet). {% endif %} {% if is_admin %} {% include "forms/course.html" with formtitle="Edit course" %} {% endif %} {% endblock content %}