{% extends "base.html" %} {% block title %}{{ poll.name }}{% endblock %} {% block page_title %}{{ poll.name }}{% endblock %} {% block error %} {{error_msg}} {% endblock %} {% block content %}

{{poll.description}}

{% if not poll.page_set.count == 0 %}
{% csrf_token %} {% for question in questions %}
{{ question.text }}
{% for answer in question.answer_set.all %}
{{ answer.text }}
{% endfor %}
{% endfor %} {% if page_index != poll.page_set.count|add:"-1" %} {% else %} {% endif %}
{% endif %} {% endblock %}