From d316e551d4089571e7520646f74ea83aa661165b Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Wed, 9 Sep 2020 13:07:44 +0200 Subject: [PATCH] Show tardiness in lesson overview --- aleksis/apps/alsijil/static/css/alsijil/lesson.css | 5 +++++ .../alsijil/templates/alsijil/class_register/lesson.html | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/aleksis/apps/alsijil/static/css/alsijil/lesson.css b/aleksis/apps/alsijil/static/css/alsijil/lesson.css index 6d57c7e99..9847ea0f0 100644 --- a/aleksis/apps/alsijil/static/css/alsijil/lesson.css +++ b/aleksis/apps/alsijil/static/css/alsijil/lesson.css @@ -10,6 +10,11 @@ text-decoration: line-through; } +.alsijil-tardiness-text{ + vertical-align: super; +} + + @media only screen and (max-width : 992px) { table.responsive-table.alsijil-table th, table.responsive-table.alsijil-table td { diff --git a/aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html b/aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html index 706a74f7f..018dc41c3 100644 --- a/aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html +++ b/aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html @@ -1,6 +1,6 @@ {# -*- engine:django -*- #} {% extends "core/base.html" %} -{% load week_helpers material_form_internal material_form i18n static rules %} +{% load week_helpers material_form_internal material_form i18n static rules time_helpers %} {% block browser_title %}{% blocktrans %}Lesson{% endblocktrans %}{% endblock %} @@ -270,7 +270,12 @@ <tr> <td>{{ form.person_name.value }}</td> <td><i class="material-icons center">{{ form.absent.value|yesno:"check,clear" }}</i></td> - <td><i class="material-icons center">{{ form.late.value|yesno:"check,clear" }}</i></td> + <td> + <i class="material-icons center">{{ form.late.value|yesno:"check,clear" }}</i> + <span class="alsijil-tardiness-text"> + {% if form.late.value %}{{ form.late.value|to_time|time:"i\m" }}{% endif %} + </span> + </td> <td><i class="material-icons center">{{ form.excused.value|yesno:"check,clear" }}</i></td> <td>{% firstof form.excuse_type.value "–" %}</td> <td> -- GitLab