From 661f82d43906c41185cdd07003b78395fd626024 Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Sat, 14 Sep 2019 12:07:34 +0200 Subject: [PATCH] Strike-through lesson if cancelled. Closes #28. --- biscuit/apps/alsijil/static/css/alsijil/lesson.css | 5 +++++ biscuit/apps/alsijil/templates/alsijil/group_week.html | 3 +++ 2 files changed, 8 insertions(+) diff --git a/biscuit/apps/alsijil/static/css/alsijil/lesson.css b/biscuit/apps/alsijil/static/css/alsijil/lesson.css index 2cdd497dd..fff5131ce 100644 --- a/biscuit/apps/alsijil/static/css/alsijil/lesson.css +++ b/biscuit/apps/alsijil/static/css/alsijil/lesson.css @@ -3,3 +3,8 @@ input.alsijil-lesson-personal-note-name:disabled { border: 0; color: #212529; } + +.alsijil-lesson-cancelled { + background-color: inherit !important; + text-decoration: line-through; +} diff --git a/biscuit/apps/alsijil/templates/alsijil/group_week.html b/biscuit/apps/alsijil/templates/alsijil/group_week.html index fd25a1da6..1c8a29be8 100644 --- a/biscuit/apps/alsijil/templates/alsijil/group_week.html +++ b/biscuit/apps/alsijil/templates/alsijil/group_week.html @@ -47,6 +47,9 @@ {% else %} {% if period.get_substitution %} table-warning + {% if period.get_substitution.cancelled %} + alsijil-lesson-cancelled + {% endif %} {% endif %} {% endif %} {% endif %} -- GitLab