Add allow_late_submissions toggle to assignments

This commit is contained in:
Dmitry Belan
2026-09-28 21:18:34 +03:00
parent bc2866280b
commit ece2e51b04
4 changed files with 15 additions and 6 deletions
+10 -3
View File
@@ -47,9 +47,16 @@
{% endif %}
{% else %}
{% if assignment.deadline and now > assignment.deadline %}
<span class="inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-xs font-mono font-medium bg-obsidian-borderLight/20 text-txt-muted border border-obsidian-borderLight/50">
Дедлайн прошел
</span>
{% if assignment.allow_late_submissions %}
<span class="inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-xs font-mono font-medium bg-obsidian-borderLight/20 text-txt-muted border border-obsidian-borderLight/50">
Дедлайн прошел
</span>
{% else %}
<span class="inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-xs font-mono font-medium bg-rose-950/40 text-rose-400 border border-rose-800/50">
<span class="w-1.5 h-1.5 rounded-full bg-rose-400"></span>
Прием закрыт
</span>
{% endif %}
{% else %}
<span class="inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-xs font-mono font-medium bg-status-roseBg text-status-rose border border-status-rose/30">
<span class="w-1.5 h-1.5 rounded-full bg-status-rose"></span>