{% extends "base.html" %} {% block title %}{{ pack.pack_name }} Quiz – Auf Deutsch{% endblock %} {% block content %} {% set quiz_questions = graded_questions or questions %}
← Back to pack

{{ pack.pack_name }} Mini-Quiz

Mixed practice with meaning, listening, dictation, scenarios, and quick drills.

{{ score if score is not none else '' }}{% if total %}/{{ total }}{% endif %}

{% if score is not none %}You checked {{ total }} questions.{% endif %}

{% for question in quiz_questions %} {% set q_idx = loop.index0 %} {% set correct_answer = question.correct_answer if question.correct_answer is defined else (question.phrase.de if question.phrase else '') %}
Q{{ loop.index }} {{ question.type | replace("_", " ") }}

{{ question.prompt }}

{% if question.phrase %} {% endif %} {% if question.phrase and question.phrase.examples %}

{{ question.phrase.examples[0].de }} — {{ question.phrase.examples[0].en }}

{% endif %} {% if question.type == "dictation" %}

{{ question.phrase.en if question.phrase else "" }}

{% else %}
{% for choice in question.choices %} {% endfor %}
{% endif %}
{% if graded_questions %} {% if question.is_correct %}Correct{% else %}Correct answer: {{ correct_answer }}{% endif %} {% endif %}
{% if question.explanation %}

{{ question.explanation }}

{% endif %}
{% endfor %}
{% if graded_questions %} Try again Back to pack {% else %} {% endif %}
{% endblock %} {% block scripts %} {% if not graded_questions %} {% endif %} {% endblock %}