{% extends 'partials/base.html' %} {% load static %} {% block extra_css %} {% endblock %} {% block contents %} {% csrf_token %} {% if reponses_questionnaire.count == 0 %}
{% endif %} {% for question in questions %}
{{ forloop.counter }}-{{ question.texte }}
{% for choix in question.choix.all %} {% if choix.texte != 'OUI' and choix.texte != 'NON' and choix.texte != 'N/A'%}
{%else%}
{% if choix.texte == 'N/A' %} {%else%} {% endif %}
{% endif %} {% endfor %} {% if question.si_oui %}
{%endif%} {% if question.autre %}
{% endif %} {% for sous_question in question.sous_question.all %}

{{ sous_question }}

{% for choix in sous_question.choix.all %}
{% if choix.texte == 'NON' %} {%else%} {% endif %}
{% endfor %} {% endfor %}
{% endfor %} {% if reponses_questionnaire.count == 0 %}
{% endif %} {% endblock %} {% block extra_javascript %} {% endblock %}