feat: add admin controllers, permissions and navigation for quizzes and attempts

This commit is contained in:
Jakub Zych
2026-10-02 14:17:43 +02:00
parent effe640549
commit 793cc4aac0
32 changed files with 1108 additions and 114 deletions

View File

@@ -12,3 +12,55 @@ api:
single_one_answer: Choose exactly one answer for this question.
known_required: The known field is required for this question.
unknown_category: The quiz has no questions in this category.
permissions:
access_quizzes: Manage quizzes, questions and answers
access_attempts: View quiz attempts
common:
sort_order: Order
updated_at: Updated
quizzes:
title: Quizzes
quiz: Quiz
title_field: Title
slug: Slug
slug_comment: Leave empty to build it from the title.
description: Description
context: Context
context_comment: Optional link to another plugin's record, such as vendor.plugin:course:12.
is_published: Published
passing_score: Passing score (%)
time_limit_seconds: Time limit (seconds)
time_limit_comment: Leave empty for no limit.
round_size: Round size
round_size_comment: Clients may present the questions in rounds of this many.
shuffle_questions: Shuffle questions
questions:
title: Questions
question: Question
quiz: Quiz
text: Question
type: Type
type_single: Single choice
type_multiple: Multiple choice
type_self_check: Self-check (flashcard)
category: Category
points: Points
answer_text: Model answer
answer_text_comment: Revealed for self-check questions.
explanation: Explanation
answers:
title: Answers
answer: Answer
question: Question
text: Answer
is_correct: Correct
explanation: Explanation
attempts:
title: Attempts
quiz: Quiz
user: User
started_at: Started
completed_at: Completed
score_points: Points
max_points: Max points
score_percent: Score (%)

View File

@@ -12,3 +12,55 @@ api:
single_one_answer: Wybierz dokładnie jedną odpowiedź.
known_required: Zaznacz, czy znasz odpowiedź.
unknown_category: Quiz nie ma pytań w tej kategorii.
permissions:
access_quizzes: Zarządzanie quizami, pytaniami i odpowiedziami
access_attempts: Podgląd podejść do quizów
common:
sort_order: Kolejność
updated_at: Zaktualizowano
quizzes:
title: Quizy
quiz: Quiz
title_field: Tytuł
slug: Slug
slug_comment: Zostaw puste, aby utworzyć z tytułu.
description: Opis
context: Kontekst
context_comment: Opcjonalne powiązanie z rekordem innej wtyczki, np. vendor.plugin:course:12.
is_published: Opublikowany
passing_score: Próg zaliczenia (%)
time_limit_seconds: Limit czasu (sekundy)
time_limit_comment: Zostaw puste, aby nie ograniczać czasu.
round_size: Wielkość rundy
round_size_comment: Klient może pokazywać pytania w rundach po tyle pytań.
shuffle_questions: Losowa kolejność pytań
questions:
title: Pytania
question: Pytanie
quiz: Quiz
text: Pytanie
type: Typ
type_single: Jednokrotny wybór
type_multiple: Wielokrotny wybór
type_self_check: Fiszka (samoocena)
category: Kategoria
points: Punkty
answer_text: Wzorcowa odpowiedź
answer_text_comment: Pokazywana w fiszkach po odsłonięciu.
explanation: Wyjaśnienie
answers:
title: Odpowiedzi
answer: Odpowiedź
question: Pytanie
text: Odpowiedź
is_correct: Poprawna
explanation: Wyjaśnienie
attempts:
title: Podejścia
quiz: Quiz
user: Użytkownik
started_at: Rozpoczęto
completed_at: Zakończono
score_points: Punkty
max_points: Maks. punktów
score_percent: Wynik (%)