feat: add test mode to quizzes and withhold its solutions

- mode, navigation and max_attempts columns with Go-side defaults
- classes.Withheld gates every solution field of the answer feedback
  and the attempt result while a test attempt is open
- a test's quiz detail lists no questions before the attempt starts
- admin fields and lang keys for the three settings
This commit is contained in:
Jakub Zych
2026-11-09 14:03:34 +01:00
parent 67a83dba32
commit 6c6ecae9d8
14 changed files with 506 additions and 36 deletions

View File

@@ -34,6 +34,16 @@ quizzes:
round_size: Wielkość rundy
round_size_comment: Klient może pokazywać pytania w rundach po tyle pytań.
shuffle_questions: Losowa kolejność pytań
mode: Tryb
mode_learning: Nauka
mode_test: Test
mode_comment: Test ukrywa poprawne odpowiedzi i wyjaśnienia do zakończenia podejścia.
navigation: Nawigacja w teście
navigation_free: Swobodna (można wracać i zmieniać odpowiedzi)
navigation_one_way: Jednokierunkowa (odpowiedź jest ostateczna)
navigation_comment: Dotyczy tylko testów.
max_attempts: Limit podejść
max_attempts_comment: Tylko dla testów. Zostaw puste, aby nie ograniczać.
questions:
title: Pytania
question: Pytanie