mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 07:00:14 +02:00
Added Gedmo stuff, fix translations (#117)
* Added Gedmo stuff, fix translations * Add CSRF token validation across backoffice forms - Added CSRF validations to candidate correction, penalty, answer saving, and elimination forms. - Updated corresponding Twig templates to include CSRF token inputs. - Adjusted column count in `tab_result` template to maintain layout consistency. * Add unique index constraint for `quiz_candidate` with soft delete support - Updated migration to include a unique index on `quiz_candidate` table that excludes soft-deleted records. - Adjusted `QuizCandidate` entity to reflect the new unique constraint with `deleted_at` condition. * Add CSRF token validation for quiz-related actions - Added CSRF validation to `enableQuiz`, `clearQuiz`, `deleteQuiz`, `toggleCandidate`, and `prepareElimination` actions. - Updated Twig templates to replace links with POST forms to include CSRF tokens. - Set HTTP method restrictions for related endpoints to `POST`. * Fix unique index condition for `quiz_candidate` with soft deletes - Updated condition in unique index definition of `quiz_candidate` to add parentheses for clarity. - Adjusted related migration to reflect the revised condition. * Remove if for post an use methods in Route instead * Refactor CSRF token validation in backoffice controllers - Applied `#[IsCsrfTokenValid]` attribute for CSRF checks to simplify and standardize validation. - Removed manual `isCsrfTokenValid` calls and associated exception throwing. - Updated method signatures across affected endpoints to remove unnecessary `Request` dependency. - Ensured consistency in route HTTP method restrictions where applicable. * Add rector and phpstan * Add validation for answering incorrect quiz question - Added logic to prevent candidates from answering questions out of sequence in `QuizController`. - Updated Dutch translations to include the new error message. * Things
This commit is contained in:
@@ -37,9 +37,9 @@
|
||||
<source>Add Quiz</source>
|
||||
<target>Test toevoegen</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="ehB6pAw" resname="Add a quiz to %name%">
|
||||
<source>Add a quiz to %name%</source>
|
||||
<target>Voeg een test toe aan %name%</target>
|
||||
<trans-unit id="apgpM9w" resname="Add a quiz to {name}">
|
||||
<source>Add a quiz to {name}</source>
|
||||
<target>Voeg een test toe aan {name}</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="qiXD5ve" resname="All Seasons">
|
||||
<source>All Seasons</source>
|
||||
@@ -109,13 +109,13 @@
|
||||
<source>Corrections</source>
|
||||
<target>Jokers</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="Lu7u8U2" resname="Cound not find candidate with name %name%">
|
||||
<source>Cound not find candidate with name %name%</source>
|
||||
<target>Kon kandidaat met naam %name% niet vinden</target>
|
||||
<trans-unit id="9JHLsoe" resname="Could not find candidate with name {name}">
|
||||
<source>Could not find candidate with name {name}</source>
|
||||
<target>Kon kandidaat met naam {name} niet vinden</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="YQUiB4T" resname="Cound not find candidate with name %name% in elimination.">
|
||||
<source>Cound not find candidate with name %name% in elimination.</source>
|
||||
<target>Kon geen kandidaat vinden met de naam %name% in de eliminatie</target>
|
||||
<trans-unit id="h589jDz" resname="Could not find candidate with name {name} in elimination.">
|
||||
<source>Could not find candidate with name {name} in elimination.</source>
|
||||
<target>Kon geen kandidaat vinden met de naam {name} in de eliminatie</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="0DvmToq" resname="Create a season">
|
||||
<source>Create a season</source>
|
||||
@@ -301,6 +301,10 @@
|
||||
<source>Questions</source>
|
||||
<target>Vragen</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="1jiUI_8" resname="Quick actions">
|
||||
<source>Quick actions</source>
|
||||
<target>Snelle acties</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="0tv0gq." resname="Quiz">
|
||||
<source>Quiz</source>
|
||||
<target>Test</target>
|
||||
@@ -429,6 +433,10 @@
|
||||
<source>You are not allowed to answer this quiz</source>
|
||||
<target>Je mag deze test niet beantwoorden</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="78moQnF" resname="You cannot answer this question">
|
||||
<source>You cannot answer this question</source>
|
||||
<target>Je kan deze vraag niet beantwoorden</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="0afY1NF" resname="You have no seasons yet.">
|
||||
<source>You have no seasons yet.</source>
|
||||
<target>Je hebt nog geen seizoenen.</target>
|
||||
|
||||
Reference in New Issue
Block a user