[Lesson substitution] Add way to add substitution for a lesson
-
In the lesson day view, make all rows that have a substitution linked to them yellow. -
Make a modelform for LessonSubstitution -
Make a view for that model form that takes the week number and the id of a LessonPeriod as URL arguments, then finds an existing LessonSubstition for that week and that lesson period. If it finds one, it passes it as instance to the modelform; if not, it passes the LessonPeriod for the lesson_period field in the initial data. -
Add a link to the lesson day table that links to the model form view with the week number (you need to get that into the table class, somehow ;)) and the lesson period of the table row