feat: show active/ready badges on quiz list

Adds an "Active" badge for the season's currently selected quiz and
renames the "Finalized" badge to "Ready" for finalized quizzes, so
both states are visible at a glance.
This commit is contained in:
2026-07-08 15:24:18 +02:00
parent 1d3e99d2b2
commit 748f51e1a5
2 changed files with 8 additions and 1 deletions
@@ -11,8 +11,11 @@
<a class="list-group-item list-group-item-action{% if season.activeQuiz == quiz %} active{% endif %}"
href="{{ path('tvdt_backoffice_quiz', {seasonCode: season.seasonCode, quiz: quiz.id}) }}">
{{ quiz.name }}
{% if season.activeQuiz == quiz %}
<span class="badge text-bg-light">{{ 'Active'|trans }}</span>
{% endif %}
{% if quiz.isFinalized %}
<span class="badge text-bg-success">{{ 'Finalized'|trans }}</span>
<span class="badge text-bg-success">{{ 'Ready'|trans }}</span>
{% endif %}
</a>
{% else %}