{% extends "base-projector.html" %} {% load tags %} {% load i18n %} {% load staticfiles %} {% block title %}{{ block.super }} - {{ assignment }}{% endblock %} {% block header %} {% endblock %} {% block content %} {% if assignment.status != "fin" %} {% endif %}

{% trans "Election" %}: {{ assignment }}

{% endblock %} {% block scrollcontent %} {% if not assignment.candidates %}

{{ assignment.description|linebreaks }}

{% endif %} {% if assignment.candidates and assignment.status != "fin" %}

{% trans "Candidates" %}

    {% for candidate in assignment.candidates %}
  1. {{ candidate }}
  2. {% empty %}
  3. {% trans "No candidates available." %}
  4. {% endfor %}


{% endif %} {% if polls.exists %}

{% trans "Election results" %}

{% for poll in polls %} {% endfor %} {% for candidate, poll_list in vote_results.items %} {% for vote in poll_list %} {% endfor %} {% endfor %} {% for poll in polls %} {% endfor %} {% for poll in polls %} {% endfor %}
{% trans "Candidates" %} {{ poll.get_ballot }}. {% trans "ballot" %}
{% if candidate in assignment.elected %} {% endif %} {{ candidate }} {% if not assignment_publish_winner_results_only 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 %}
{% trans 'Invalid votes' %} {% if poll.has_votes %} {{ poll.print_votesinvalid }} {% endif %}
{% trans 'Votes cast' %} {% if poll.has_votes %} {{ poll.print_votescast }} {% endif %}
{% elif some_polls_available %} {% trans "Vote results are not published yet." %} {% endif %}
{% endblock %}