diff --git a/aleksis/apps/alsijil/static/css/alsijil/lesson.css b/aleksis/apps/alsijil/static/css/alsijil/lesson.css index 6d57c7e9910063dc8dfe359c643e65765cb6ad9c..9847ea0f035ef8988eab156d746229d1799b9c44 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 706a74f7ff88273b138e1dd959f35b766d123ddb..018dc41c31eead61355b6b7bfe84756121297852 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>