{% extends "beamer.html" %} {% block title %}{{ block.super }} - #{{ item.title }}{% endblock %} {% block header %} {% endblock %} {% block content %}

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

{{ item.assignment.description|linebreaks }}

{% if item.assignment.status != "fin" %}

{% trans "Candidates" %}

    {% for profile in item.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 item.assignment.poll_set.all %} {% if poll.published %} {% endif %} {% endfor %} {% for vote in votes %} {% for v in vote|last %} {% endfor %} {% 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" %}
{% with vote|first as candidate %} {% if candidate.1 %} {% endif %} {{ candidate.0 }} {% endwith %} {% 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 %} {% else %}∅{% endif %}
{% trans "No ballots available." %}
{%trans 'Invalid votes' %} {{ p.votesinvalidf }}
{%trans 'Votes cast' %} {{ p.votescastf }}
{% endif %} {% endwith %}
{% endblock %}