{% load static %}
{% csrf_token %}

{{ survey.name }}

{% for question in questions %} {% if question.ans_type == 'T' %}

{{ question.question }}:



{% elif question.ans_type == 'R' %}

{{ question.question }}:


{% for choice in question.choices.all %} {{ choice.choice }}  {% endfor %}

{% elif question.ans_type == 'C' %}

{{ question.question }}:


{% for choice in question.choices.all %} {{ choice.choice }}  {% endfor %}

{% else %}

Unrecognized Field

{% endif %} {% endfor %}