Viewing by Class / Teacher / Room
Viewing by Class / Teacher / Room
Anywhere a timetable is shown — the dashboard's "current timetable" card, the result preview on Generate, and the saved-timetable editor — it's rendered by the same component, with a "View by" selector at the top: Class Group, Teacher, or Room.
What changes when you switch views
Each view mode builds one table per resource of that type (one table per class group, one per teacher, or one per room), and matches each entry in the solution against that resource:
- Class Group — a table per class group, showing any entry whose
groupslist includes it. - Teacher — a table per teacher, showing any entry whose
teacherslist includes them (co-taught lessons show up in every teacher's table). - Room — a table per room, showing any entry assigned to it.
The second dropdown lets you narrow that down to a single class/teacher/room, or leave it on "All" to see every table for that resource type, one after another.
In Teacher view, a teacher with an Employee ID is listed in the dropdown as "Mr. Smith (T042)", and their table shows "Employee ID: T042" under its heading — handy when two teachers share a name.
Editing only works in Class Group view
The saved-timetable editor's drag-to-move and drag-to-swap are wired up for Class Group view only — dragging a lesson resolves the drop target against a class group id, which doesn't mean anything in Teacher or Room view. Switching to Teacher or Room view while editing a saved timetable shows a "Editing is only available in Class Group view" notice and the grid becomes read-only until you switch back. This doesn't affect viewing, printing, or CSV export — only dragging cells around.
The view you're on affects printing, not CSV export
Printing / Save-as-PDF (see Exporting to CSV and PDF) captures exactly what's on screen — if you're filtered down to one teacher, only that teacher's table prints. CSV export ignores the current view entirely and always exports the whole timetable, every entry, regardless of which resource or filter is currently selected on screen.