From b1a959fdc68277c0d59504e916e0183dc9168d34 Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Thu, 9 Jul 2026 18:31:30 +0200 Subject: [PATCH] feat: show active/ready badges on quiz list (#193) * 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. * fix: hide Ready badge on the active quiz, translate to Voorbereid An active quiz is finalized by definition, so showing both badges was redundant. * fix: align quiz status badges to the left of the row Previously the badge trailed the quiz name, so its position shifted with the name's length. Placing it first keeps it at a consistent left edge across all rows. * fix: right-align quiz status badges Puts the badge at the end of the row via ms-auto instead of leading the quiz name. --- templates/backoffice/season/tab_tests.html.twig | 8 +++++--- translations/messages+intl-icu.nl.xliff | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/backoffice/season/tab_tests.html.twig b/templates/backoffice/season/tab_tests.html.twig index 5f070d4..99ade46 100644 --- a/templates/backoffice/season/tab_tests.html.twig +++ b/templates/backoffice/season/tab_tests.html.twig @@ -8,11 +8,13 @@
{% for quiz in season.quizzes %} - {{ quiz.name }} - {% if quiz.isFinalized %} - {{ 'Finalized'|trans }} + {% if season.activeQuiz == quiz %} + {{ 'Active'|trans }} + {% elseif quiz.isFinalized %} + {{ 'Ready'|trans }} {% endif %} {% else %} diff --git a/translations/messages+intl-icu.nl.xliff b/translations/messages+intl-icu.nl.xliff index 0628e58..2cb4957 100644 --- a/translations/messages+intl-icu.nl.xliff +++ b/translations/messages+intl-icu.nl.xliff @@ -665,6 +665,10 @@ Re-opens the quiz for editing. Candidates will no longer be able to take the quiz until it is finalized again. Heropent de test voor bewerking. Deelnemers kunnen de test niet meer afnemen totdat deze opnieuw is afgerond. + + Ready + Voorbereid + Red Rood