{% extends 'base.html' %} {% block title %}Survey{% endblock %} {% block content %} {% if user.is_authenticated %}

New Survey

{{ section.section_name }}

{{ section.section_text }}

{% if subsection.subsection_name != section.section_name %}

{{ subsection.subsection_name }}

{% endif %}

{{ subsection.subsection_text }}

{% csrf_token %} {{ formset.management_form }} {{ parent_form.as_p }} {% for hidden in formset.hidden_fields %} {{ hidden }} {% endfor %} {% for details, form in combined %}

{{ details.question.question_text }}

{% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% if details.text %} {{ form.text_answer }} {% else %} {{ form.choice_answer }} {% endif %} {{ form.non_form_errors }} {{ form.errors }} {% endfor %}


{% for s, link in subsections %} {% endfor %}
{% else %}

You are not logged in

Log In {% endif %} {% endblock %}