Add allow_late_submissions toggle to assignments
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user