{% load humanize %} {% load i18n %} {% load staticfiles %} {% load tags %}

{{ poll.motion.active_version.title }} {% trans 'Motion' %} {{ poll.motion.identifier|default:'' }} {% if poll.motion.get_active_version.version_number > 1 %} | {% trans 'Version' %} {{ poll.motion.active_version.version_number }}{% endif %} {% if poll.poll_number > 1 %}| {{ poll.poll_number|ordinal|safe }} {% trans 'vote' %}{% endif %}

{% if all_keypad_votes %} {# electronic voting with keypads #} {% if 'votecollector_live_voting'|get_config or poll.has_votes %} {% if 'votecollector_seating_plan'|get_config %}
{{ all_keypad_votes.Y|default:'0' }} {{ all_keypad_votes_percentage.Y|default:'0' }} %
{{ all_keypad_votes.N|default:'0' }} {{ all_keypad_votes_percentage.N|default:'0' }} %
{{ all_keypad_votes.A|default:'0' }} {{ all_keypad_votes_percentage.A|default:'0' }} %
{{ all_keypad_votes.votes_cast|default:'0' }} {{ all_keypad_votes_percentage.votes_cast|default:'0' }} %
{% for row in seating_plan.rows %} {% for place in row %} {% endfor %} {% endfor %}
{% if place.number %}{{ place.number }}{% endif %}
{% if votes_without_seat %} {{ votes_without_seat }} {% trans 'Votes without seat' %} {% endif %}
{% else %}
{% trans 'Yes' %}: {{ all_keypad_votes.Y|default:'0' }}
{{ all_keypad_votes_percentage.Y|default:'0' }} %
{% trans 'No' %}: {{ all_keypad_votes.N|default:'0' }}
{{ all_keypad_votes_percentage.N|default:'0' }} %
{% trans 'Abstention' %}: {{ all_keypad_votes.A|default:'0' }}
{{ all_keypad_votes_percentage.A|default:'0' }} %
{% trans 'Valid votes' %}: {{ all_keypad_votes.votes_cast|default:'0' }} {{ all_keypad_votes_percentage.votes_cast|default:'0' }} %
{% endif %} {% endif %} {% elif poll.has_votes %} {# manual voting without keypads #} {% with poll.get_options.0 as option %} {% if poll.votesvalid != None %} {% endif %} {% if poll.votesinvalid != None %} {% endif %} {% if poll.votescast != None %} {% endif %}
{% trans 'Yes' %}: {{ option.Yes }}
{% trans 'No' %}: {{ option.No }}
{% trans 'Abstention' %}: {{ option.Abstain }}
{% trans 'Valid votes' %}: {{ poll.print_votesvalid }}
{% trans 'Invalid votes' %}: {{ poll.print_votesinvalid }}
{% trans 'Votes cast' %}: {{ poll.print_votescast }}
{% endwith %} {% endif %}