{% extends "base.html" %} {% block title %}Teacher Timetable{% endblock %} {% block page_title %}Teacher Timetable View{% endblock %} {% set active = "teacher-tt" %} {% block topbar_actions %} {% if selected_teacher %} Export PDF {% endif %} {% endblock %} {% block content %}
{% for t in teachers %} {{ t.name }} {% endfor %}
{% if not cfg or not teachers %}
👩‍🏫

No timetable or teachers yet

Add Teachers
{% elif not grid %}
📅

No periods assigned

Generate the class timetable first.

View Timetable
{% else %}
{% for p in periods %} {% if p in break_periods %} {% else %}{% endif %} {% endfor %} {% for day in days %} {% for p in periods %} {% set cell = grid.get((day, p), {}) %} {% if p in break_periods %} {% elif cell %} {% else %} {% endif %} {% endfor %} {% endfor %}
DayBreakP{{ p }}
{{ day }}
{{ cell.subj_name }}
Gr.{{ cell.grade }}-{{ cell.section }}
Free

Weekly Workload

{% set total = [] %} {% for day in days %}{% for p in periods %}{% if grid.get((day,p)) and p not in break_periods %}{% set _ = total.append(1) %}{% endif %}{% endfor %}{% endfor %}

{{ total|length }} teaching periods per week

{% endif %} {% endblock %}