{% if new_attempt %} {% endif %}
Осталось:
{{ test.title }}
{{ test.description }}
{% if test.max_attempts %}
Максимальное количество попыток: {{ test.max_attempts }}
{% endif %}
{% if test.display_mode == 'all' %} {# Режим: все вопросы на одной странице #} {% for question in questions %}
{{ loop.index }}. {{ question.question_text }}
{% if question.attachments %}
{% for file in question.attachments %} {% if file.file_type.startswith('image') %}
{% elif file.file_type.startswith('audio') %}
{% elif file.file_type.startswith('video') %}
{% endif %} {% endfor %}
{% endif %} {% for answer in question.answers %}
{{ answer.answer_text }}
{% endfor %}
{% endfor %}
Отправить
{% else %} {# Режим: по одному вопросу #} {% for question in questions %}
{{ loop.index }}. {{ question.question_text }}
{% if question.attachments %}
{% for file in question.attachments %} {% if file.file_type.startswith('image') %}
{% elif file.file_type.startswith('audio') %}
{% elif file.file_type.startswith('video') %}
{% endif %} {% endfor %}
{% endif %} {% for answer in question.answers %}
{{ answer.answer_text }}
{% endfor %}
{% if not loop.last %}
Далее
{% else %}
Отправить
{% endif %}
{% endfor %} {% endif %}
Внимание
Вы переключились на другую вкладку. Тест будет завершён