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

Edit Mode - Resolve Conflicts

Saved Timetables View Only Regenerate
{% if has_conflicts %}
Scheduling Conflicts Detected ({{ conflicts|length }})

{% for conflict in conflicts %}
{{ conflict.teacher }} is scheduled in multiple sections at {{ conflict.time }}:
    {% for i in range(conflict.sections|length) %}
  • {{ conflict.sections[i] }} - {{ conflict.subjects[i] }}
  • {% endfor %}
{% endfor %}
{% else %}
No scheduling conflicts detected! Your timetables are properly organized.
{% endif %}
Edit Instructions: Click and drag subjects to move them between time slots. Click on two subjects to swap their positions. Changes are saved automatically.
{% if timetables %} {% for timetable in timetables %}

{{ timetable.section_name }} ({{ timetable.section_year }}) Edit Mode

{% for period in timetable.periods %} {% endfor %} {% for day_index in range(6) %} {% for period_index in range(8) %} {% endfor %} {% endfor %}
Day{{ period }}
{{ timetable.days[day_index] }} {% set subject = timetable.schedule[day_index][period_index] %} {% if subject %} {% if subject.is_lunch %}
LUNCH
Break Time
{% elif subject.get('is_hidden', False) %}
Lab continues
{% else %}
{{ subject.name }}
{{ subject.teacher }} {% if subject.is_lab %}
Lab
{% endif %}
{% endif %} {% else %}
Free
{% endif %}
{% endfor %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}