{% load static %} Manage Course

{{ course.title }}

{{ course.description }}

Add a Section

{% csrf_token %}
{{ section_form.name|as_crispy_field }} {% if section_form.errors %}
    {% for error in section_form.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}

Add a Lesson

{% csrf_token %}
{{ lesson_form.name|as_crispy_field }} {% if lesson_form.errors %}
    {% for error in lesson_form.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}

Course Content

{% for section in sections %}

{{ section.name }}

    {% for lesson in lessons %} {% if lesson.section == section %}
  • {{ lesson.name }}
  • {% endif %} {% endfor %}
{% empty %}

No sections or lessons have been added yet.

{% endfor %}