{% extends hx_layout %} {% block regular_content %}
{% include "quiz/incl-question-progress.html" %}
{{ question.text|commonmark }}
{% if question.code %}
{{ question.code }}
{% endif %} {% if question.output %}
{{ question.output }}
{% endif %} {% if question.hint %}
{% endif %}
{# Every option is styled differently, initialize them here #} {% set svg_contents = cycler( '', '', '', '', '', '', ) %} {% set container_colors = cycler( 'bg-green-300 border-green-600', 'bg-yellow-300 border-yellow-600', 'bg-blue-300 border-blue-600', 'bg-purple-300 border-purple-600', 'bg-pink-300 border-pink-600', 'bg-orange-300 border-orange-600', ) %}
{% for choice in question.choices %}
{% if progress.question == question.number %}
{{ svg_contents.next()|safe }}
{{choice.text|markdown_retain_newlines|commonmark}}
{% if choice.code %}
{{choice.code}}
{% endif %}
{% else %}
{{ svg_contents.next()|safe }}
{{choice.text|markdown_retain_newlines|commonmark}}
{% if choice.code %}
{{choice.code}}
{% endif %}
{% endif %} {% if progress.wrong_answer_feedback %}
{% if choice.number == progress.last_wrong_answer %} {{ progress.wrong_answer_feedback|commonmark }} {% endif %}
{% endif %}
{% endfor %}
{% endblock %}