{% extends 'base.html' %} {% block content %}

{{ quiz.name }}

{% if quiz.user_id == request.user %} {% endif %}
Quiz duplizieren {% if quiz.questions.count != 0 %} Spielen {% endif %}
{% if quiz.description %}

{{ quiz.description }}

{% endif %}
{% if detail == True %}
  Antworten verstecken
{% else %}
  Antworten anzeigen
{% endif %}

Fragen {% for question in questions %}{% if forloop.last %}({{ forloop.counter }}) {% endif %} {% endfor %}

{% if questions %}
{% for question in questions %}

{{ forloop.counter }}.

{% if quiz.user_id == request.user %} {% endif %}

{{ question.data.question }}

{% if question.data.type == 'multiple_choice' %}Multiple Choice {% elif question.data.type == 'input' %}Eingabe {% elif question.data.type == 'map' %}Karte {% elif question.data.type == 'true_false' %}Wahr/Falsch {% elif question.data.type == 'order' %}Reihenfolge {% else %}Schätzen {% endif %}
{% if detail %} {% if question.data.type == 'multiple_choice' %}
    {% for option in question.data.options|dictsort:"order" %}
  • {% if option.is_correct %} {{ option.value }} {% else %} {{ option.value }} {% endif %}
  • {% endfor %}
{% if question.image.image.url %} Bild der Frage {% endif %}
{% elif question.data.type == 'map' and detail %}
Zielort: {% if question.data.target_location %} {{ question.data.target_location }} {% else %} Kein Zielort festgelegt {% endif %}
{% if question.data.target_location %} {% endif %} {% if question.data.tolerance_radius %}
Toleranzradius: {{ question.data.tolerance_radius }} Meter
{% endif %} {% if question.image.image.url %} Bild der Frage {% endif %}
{% elif question.data.type == 'order' %}
    {% for option in question.data.options|dictsort:"order" %}
  • {{ forloop.counter }}.   {{ option.value }}
  • {% endfor %}
{% if question.image.image.url %} Bild der Frage {% endif %}
{% elif question.data.type == 'input' %}
    {% for option in question.data.options %}
  • {{ option.value }}
  • {% endfor %}
{% if question.image.image.url %} Bild der Frage {% endif %}
{% elif question.data.type == 'guess' %}
    {% for option in question.data.options %}
  • {{ option.value }}
  • {% endfor %}
{% if question.image.image.url %} Bild der Frage {% endif %}
{% else %}
{% for option in question.data.options %} {% if option.is_correct %}

Richtige Antwort: {{ option.value }}

{% endif %} {% endfor %} {% if question.image.image.url %} Bild der Frage {% endif %}
{% endif %} {% endif %}
{% endfor %}
{% else %}

Noch keine Fragen vorhanden. Erstellen Sie eine neue Frage, um loszulegen!

{% endif %}
{% if quiz.base_quiz %}

Bearbeitung: {{ quiz.user_id }}

{% else %}

Autor: {{ quiz.user_id }}

{% endif %}
{% if quiz.base_quiz %}

Kopie von: {{ quiz.base_quiz}}

{% endif %}
{% if quiz.base_quiz %}

Autor: {{ quiz.base_quiz.user_id }}

{% endif %}

Credits:

{% if quiz.credits %}

{{ quiz.credits }} (Credits für das Quiz)

{% else %}

Keine Credits für das Quizformular vorhanden!

{% endif %}

Quiz-Statistik

{{ quiz.quiz_played_Lernmodus }} mal im Lernmodus gespielt

{{ quiz.quiz_played_Moderiermodus }} mal im Moderiermodus gespielt (insg. {{ quiz.quiz_played_Moderiermodus_players }} Spieler)

{% endblock %}