{% extends "base.html" %} {% block content %}

{{poll_type_name}} - {{poll_name}}

{% if error %}

{{ error }}

{% endif %}

{{poll_desc}}

{% for choice in choices %} {% endfor %} {% for voter in voters %}{% ifequal current_voter_id voter.id %} {% for vote in voter.votes %}{%endfor%} {%else%} {% for vote in voter.votes %} {%endfor%} {%endifequal%} {%endfor%} {%if not current_voter_id%} {%for choice in choices%}{%endfor%} {%endif%} {% for sum in choices_sum %} {% endfor %}
{{choice.name}}
Edit {{voter.name}}{% ifequal vote.vote 1%}Yes{%else%}No{%endifequal%}
Sum{{sum}}
{% endblock %}