-
-
-
-
- {{ 'Are you sure you want to delete this quiz?'|trans }}
-
-
-
-
+
{{ 'Quiz'|trans }}: {{ season.name }} - {{ quiz.name }}
+
+
+ {{ include(template) }}
{% endblock %}
diff --git a/templates/backoffice/quiz/tab_candidates.html.twig b/templates/backoffice/quiz/tab_candidates.html.twig
new file mode 100644
index 0000000..2dd29ea
--- /dev/null
+++ b/templates/backoffice/quiz/tab_candidates.html.twig
@@ -0,0 +1,65 @@
+
+
+ {% set questions = quiz.questions %}
+ {% set currentIndex = null %}
+ {% for index, q in questions %}
+ {% if q.id.toString == question.id.toString %}
+ {% set currentIndex = index %}
+ {% endif %}
+ {% endfor %}
+
+ {% if currentIndex > 0 %}
+ {% set prevQuestion = questions[currentIndex - 1] %}
+
+ {{ 'Previous'|trans }}
+
+ {% endif %}
+
+
+
{{ currentIndex + 1 }}. {{ question }}
+
+
+ {% if currentIndex is not null and currentIndex < (questions|length - 1) %}
+ {% set nextQuestion = questions[currentIndex + 1] %}
+
+ {{ 'Next'|trans }}
+
+ {% endif %}
+
+
+
+
diff --git a/templates/backoffice/quiz/tab_overview.html.twig b/templates/backoffice/quiz/tab_overview.html.twig
new file mode 100644
index 0000000..be3e34c
--- /dev/null
+++ b/templates/backoffice/quiz/tab_overview.html.twig
@@ -0,0 +1,107 @@
+
Quick actions
+
+
+
+
{{ 'Questions'|trans }}
+
+ {%~ for question in quiz.questions ~%}
+
+
+
+
+
+ {%~ for answer in question.answers %}
+ -
+ {{ answer.text }}
+ {% if answer.candidates|length > 0 %}
+
+ ({{ answer.candidates|map(c => c.name)|join(', ') }})
+
+ {% endif %}
+
+ {%~ else %}
+ {{ 'There are no answers for this question'|trans -}}
+ {%~ endfor %}
+
+
+
+
+ {% else %}
+ {{ 'EMPTY'|trans }}
+ {% endfor %}
+
+
+
+{# Modal Clear #}
+
+
+
+
+
+ {{ 'Are you sure you want to clear all the results? This will also delete al the eliminations.'|trans }}
+
+
+
+
+
+
+{# Modal Delete #}
+
+
+
+
+
+ {{ 'Are you sure you want to delete this quiz?'|trans }}
+
+
+
+
+
diff --git a/templates/backoffice/quiz/tab_result.html.twig b/templates/backoffice/quiz/tab_result.html.twig
new file mode 100644
index 0000000..e25a000
--- /dev/null
+++ b/templates/backoffice/quiz/tab_result.html.twig
@@ -0,0 +1,78 @@
+
+
{{ 'Score'|trans }}
+
+
{{ 'Number of dropouts:'|trans }} {{ quiz.dropouts }}
+
+
+
+ | {{ 'Candidate'|trans }} |
+ {{ 'Correct Answers'|trans }} |
+ {{ 'Corrections'|trans }} |
+ {{ 'Penalty'|trans }} |
+ {{ 'Score'|trans }} |
+ {{ 'Time'|trans }} |
+
+
+
+ {%~ for candidate in result ~%}
+
+ | {{ candidate.name }} |
+ {{ candidate.correct|default('0') }} |
+
+
+ |
+
+
+ |
+ {{ candidate.score|default('x') }} |
+ {{ candidate.time.format('%i:%S') }} |
+
+ {% else %}
+
+ | {{ 'No results'|trans }} |
+
+ {% endfor %}
+
+
+
diff --git a/translations/messages+intl-icu.nl.xliff b/translations/messages+intl-icu.nl.xliff
index 2a5baab..a92915c 100644
--- a/translations/messages+intl-icu.nl.xliff
+++ b/translations/messages+intl-icu.nl.xliff
@@ -57,8 +57,8 @@
Candidates
Kandidaten
-
- Clear quiz...
+
+ Clear Quiz...
Test leegmaken...
@@ -149,14 +149,14 @@
Name
Naam
-
- No
- Nee
-
Next
Volgende
+
+ No
+ Nee
+
No active quiz
Geen actieve test
@@ -169,6 +169,10 @@
Number of dropouts:
Aantal afvallers:
+
+ Overview
+ Overzicht
+
Owner(s)
Eigena(a)r(en)
@@ -177,6 +181,10 @@
Password
Wachtwoord
+
+ Penalty
+ Straf
+
Please Confirm
Bevestig Alsjeblieft
@@ -249,6 +257,10 @@
Repeat Password
Herhaal wachtwoord
+
+ Results & Elimination
+
+
Save
Opslaan