From 431056e69e23f6bf6823b94a1f5a8acb3cdcc696 Mon Sep 17 00:00:00 2001 From: Dmitry Belan Date: Mon, 28 Sep 2026 22:25:50 +0300 Subject: [PATCH] Add late and expired time badges to custom admin submission list --- .../templates/admin/lms/submission/change_list.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lmsege/lms/templates/admin/lms/submission/change_list.html b/lmsege/lms/templates/admin/lms/submission/change_list.html index da64928..12bd09d 100644 --- a/lmsege/lms/templates/admin/lms/submission/change_list.html +++ b/lmsege/lms/templates/admin/lms/submission/change_list.html @@ -38,6 +38,12 @@

person {{ result.student.first_name|default:result.student.username }}

schedule {{ result.submitted_at|date:"d M Y, H:i" }}

+ {% if result.is_late %} +

error Сдано после дедлайна

+ {% endif %} + {% if result.is_time_expired %} +

timer_off Время вышло

+ {% endif %}
@@ -66,6 +72,12 @@

person {{ result.student.first_name|default:result.student.username }}

done_all Оценка: {{ result.grade|default:"-" }}

event {{ result.submitted_at|date:"d M Y, H:i" }}

+ {% if result.is_late %} +

error Сдано после дедлайна

+ {% endif %} + {% if result.is_time_expired %} +

timer_off Время вышло

+ {% endif %}