{% extends "lms/templates/lms_base.html" %} {% block title %} {{ _("Outline") }} - {{ course.title }} {% endblock %} {% block page_content %}
{{ Header() }}
{% if chapters | length %} {{ Outline(chapters) }} {% else %} {{ EmptyState() }} {% endif %} {{ CreateChapter() }}
{% endblock %} {% macro Header() %}
{{ course.title if course.name else _("Course Outline") }}
{{ _("Course Details") }} {{ _("Course Outline") }}
{% endmacro %} {% macro Outline(chapters) %} {% if chapters %}
{% for chapter in chapters %} {% set chapter_index = loop.index %} {% set lessons = get_lessons(course.name, chapter) %}
{{ chapter.title }}
{% if chapter.description %}
{{ chapter.description }}
{% endif %} {% if lessons | length %}
{% for lesson in lessons %} {% endfor %}
{% endif %}
{{ _("Add Lesson") }}
{% endfor %}
{% endif %} {% endmacro %} {% macro CreateChapter() %} {% endmacro %} {% macro EmptyState() %}
{{ _("You have not added any chapter yet") }}
{{ _("Create and manage your chapters from here.") }}
{% endmacro %}