Skip to content
Snippets Groups Projects
Verified Commit a81a916a authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Show if lesson is cancelled. Closes #31.

parent b70f4d1d
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,10 @@ def _css_class_from_lesson_state(record: Optional[LessonPeriod] = None, table: O ...@@ -14,6 +14,10 @@ def _css_class_from_lesson_state(record: Optional[LessonPeriod] = None, table: O
return 'table-warning' return 'table-warning'
else: else:
return '' return ''
if record.get_substitution(record._week).cancelled:
return 'table-danger'
else:
return ''
class LessonsTable(tables.Table): class LessonsTable(tables.Table):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment