{% extends "base-projector.html" %} {% load tags %} {% load i18n %} {% load staticfiles %} {% block title %}{{ block.super }} - {{ item.title }}{% endblock %} {% block header %} {% endblock %} {% block content %}

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

{% if assignment.status != "fin" %} {% endif %} {% 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 %} {% with polls|first as firstpoll %} {% if polls.count > 0 and firstpoll.published %}

{% trans "Election results" %}

{% for poll in assignment.poll_set.all %} {% if poll.published %} {% endif %} {% endfor %} {% for vote in votes %} {% with vote|first as candidate %} {% for v in vote|last %} {% endfor %} {% endwith %} {% empty %} {% endfor %} {% for p in polls %} {% if p.published %} {% endif %} {% endfor %} {% for p in polls %} {% if p.published %} {% endif %} {% endfor %}
{% trans "Candidates" %}{{forloop.counter}}. {% trans "ballot" %}
{% if candidate.1 %} {% endif %} {{ candidate.0 }} {% if v %} {% if v|length == 3 %} {% if v.0 %}{{ v.0 }}{% else %}∅{% endif %}
{% if v.1 %}{{ v.1 }}{% else %}∅{% endif %}
{% if v.2 %}{{ v.2 }}{% else %}∅{% endif %}
{% else %} {% if v != "-" %}{% endif %} {{ v }} {% endif %} {% endif %}
{% trans "No ballots available." %}
{%trans 'Invalid votes' %} {{ p.print_votesinvalid }}
{%trans 'Votes cast' %} {{ p.print_votescast }}
{% endif %} {% endwith %}
{% endblock %}