{% extends 'layout.html' %} {% set page_title = 'Questionnaire' %} {% block body %}
{% set submitted = user_input is defined %} {% if submitted -%}

You have answered only {{ user_input.total_questions_answered }} of {{ user_input.questions_total }} questions so far.

Please answer the remaining {{ user_input.total_questions_unanswered }} question(s) for final evaluation.

{% endif -%}

What's your name? (optional)

{% for question in questionnaire.get_questions() %}

{{ loop.index }}. {{ question.text }}

{%- if submitted and not user_input.is_question_answered(question) %}

Please answer this question.

{%- endif %}
    {%- for answer in questionnaire.get_answers_for_question(question)|shuffled %}
  • {%- endfor %}
{% endfor %}
{%- endblock body %}