mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-09 17:10:15 +02:00
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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user