{% endif %}
{% if assignment.candidates and assignment.status != "fin" %}
{% trans "Candidates" %}
{% for candidate in assignment.candidates %}
{{ candidate }}
{% empty %}
{% trans "No candidates available." %}
{% endfor %}
{% endif %}
{% if polls.exists %}
{% trans "Election results" %}
{% trans "Candidates" %}
{% for poll in polls %}
{{ poll.get_ballot }}. {% trans "ballot" %}
{% endfor %}
{% for candidate, poll_list in vote_results.items %}
{% if candidate in assignment.elected %}
{% endif %}
{{ candidate }}
{% for vote in poll_list %}
{% if not "assignment_publish_winner_results_only"|get_config or candidate in assignment.elected %}
{% if 'Yes' in vote and 'No' in vote and 'Abstain' in vote %}
{{ vote.Yes }} {{ vote.No }} {{ vote.Abstain }}
{% elif 'Votes' in vote %}
{{ vote.Votes }}
{% elif vote == None %}
{% trans 'was not a candidate'%}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% endfor %}
{% endfor %}
{% trans 'Invalid votes' %}
{% for poll in polls %}
{% if poll.has_votes %}
{{ poll.print_votesinvalid }}
{% endif %}
{% endfor %}
{% trans 'Votes cast' %}
{% for poll in polls %}
{% if poll.has_votes %}
{{ poll.print_votescast }}
{% endif %}