{% 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.profile.exists %}

{{ assignment.description|linebreaks }}

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

{% trans "Candidates" %}

    {% for profile in assignment.profile.all|dictsort:"user.first_name" %}
  1. {{ profile }}
  2. {% empty %}
  3. {% trans "No candidates available." %}
  4. {% endfor %}


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

{% trans "Election results" %}

{% for poll in assignment.poll_set.all %} {% if poll.published %} {% endif %} {% endfor %} {% for candidate, poll_list in vote_results.items %} {% for poll_dict in poll_list %} {% if poll_dict.published %} {% with vote=poll_dict.votes %} {% endwith %} {% endif %} {% endfor %} {% endfor %} {% for poll in polls %} {% if poll.published %} {% endif %} {% endfor %} {% for poll in polls %} {% if poll.published %} {% endif %} {% endfor %}
{% trans "Candidates" %}{{forloop.counter}}. {% trans "ballot" %}
{% if candidate in assignment.elected.all %} {% endif %} {{ candidate }} {% if not assignment_publish_winner_results_only or candidate in assignment.elected.all %} {% 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' %} {{ poll.print_votesinvalid }}
{%trans 'Votes cast' %} {{ poll.print_votescast }}
{% elif assignment.profile.exists %} {% trans "No ballots available." %} {% endif %}
{% endblock %}