{% extends "base.html" %} {% block title %}Sections - Timetable Generator{% endblock %} {% block content %}

Manage Sections

Add New Section
{% if subjects %}
{% for subject in subjects %}
{% endfor %}
{% else %}
No subjects available. Please add subjects first.
{% endif %}
{% block scripts %} {% endblock %}
Current Sections
{% if sections %} {% for section in sections %}
{{ section.name }} ({{ section.year }})
Assigned Subjects ({{ section.subjects|length }}):
{% for subj in section.subjects %}
{{ subj.subject.name }} {% if subj.teacher %} {{ subj.teacher }}
{% else %} No teacher assigned {% endif %} • {{ subj.subject.periods_per_week }} periods/week {% if subj.subject.is_lab %}• Lab ({{ subj.subject.block_size }} block){% endif %}
{% endfor %}
{% endfor %} {% else %}
No Sections Added

Add your first section using the form on the left.

{% if not subjects %}

You need to add subjects first before creating sections.

Add Subjects {% endif %}
{% endif %}
{% endblock %}