{% extends "base.html" %} {% load i18n%} {% block title %} {{ quiz.title }} | {% trans 'Learning management system' %} {% endblock %} {% block description %} {{ quiz.title }} - {{ quiz.description }} {% endblock %} {% block content %}
{{ quiz.title|title|truncatechars:25 }}

{% if previous.answers %}

{% trans "The previous question" %}:

{{ previous.previous_question }}

{% if previous.previous_outcome %}
{% else %}
{% endif %}

{% trans "Your answer was" %} {{ previous.previous_outcome|yesno:"correct,incorrect" }}

{% load i18n %} {% if previous.answers %} {% if user_was_incorrect %}
{% trans "You answered the above question incorrectly" %}
{% endif %} {% for answer in previous.answers %} {% if answer.correct %} {% else %} {% endif %} {% endfor %}
{{ answer }} {% trans "This is the correct answer" %}
{{ answer }} {% if previous.question_type.MCQuestion %} {% if answer.id|add:"0" == previous.previous_answer|add:"0" %} {% trans "This was your answer." %} {% endif %} {% endif %}
{% endif %}

{% trans "Explanation" %}:

{% if previous.previous_question.explanation %} {{ previous.previous_question.explanation }} {% else %} {% trans "No explanation set to this question." %} {% endif %}


{% endif %}
{% if question %} {% if progress.0|add:1 == 1 %} {% endif %} {% if progress %}
{% trans "Question" %} {{ progress.0|add:1 }} {% trans "of" %} {{ progress.1 }}
{% endif %}

{% trans "Quiz category" %}: {{ quiz.category }}

{{ question.content }}
{% if question.figure %}
{{ question.content }}
{% endif %}
{% csrf_token %}
    {% for answer in form.answers %}
  • {{ answer }}
  • {% endfor %}

{% endif %}
{% endblock %} {% block js %} {% endblock js %}