This commit is contained in:
2026-03-09 19:56:25 +01:00
parent 6d3402b8e3
commit 4918f49445
17 changed files with 290 additions and 224 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ class QuizController extends AbstractController
{
try {
$this->quizRepository->clearQuiz($quiz);
$this->addFlash('success', $this->translator->trans('Quiz cleared'));
$this->addFlash('success', $this->translator->trans('quiz cleared'));
} catch (ErrorClearingQuizException) {
$this->addFlash('error', $this->translator->trans('Error clearing quiz'));
}
@@ -94,7 +94,7 @@ class QuizController extends AbstractController
{
$this->quizRepository->deleteQuiz($quiz);
$this->addFlash('success', $this->translator->trans('Quiz deleted'));
$this->addFlash('success', $this->translator->trans('quiz deleted'));
return $this->redirectToRoute('tvdt_backoffice_season', ['seasonCode' => $quiz->season->seasonCode]);
}
@@ -105,7 +105,7 @@ class SeasonController extends AbstractController
$this->em->persist($quiz);
$this->em->flush();
$this->addFlash(FlashType::Success, $this->translator->trans('Quiz Added!'));
$this->addFlash(FlashType::Success, $this->translator->trans('quiz Added!'));
return $this->redirectToRoute('tvdt_backoffice_season', ['seasonCode' => $season->seasonCode]);
}
+1 -1
View File
@@ -118,7 +118,7 @@ final class QuizController extends AbstractController
// Keep creating flash here based on the return type of service call
if (!$question instanceof Question) {
$this->addFlash(FlashType::Success, $this->translator->trans('Quiz completed'));
$this->addFlash(FlashType::Success, $this->translator->trans('quiz completed'));
return $this->redirectToRoute('tvdt_quiz_enter_name', ['seasonCode' => $season->seasonCode]);
}