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

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

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

{{ item.assignment.description|linebreaks }}

{% endif %} {% if item.assignment.profile.exists and 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 %} {% 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 %} {% else %}∅{% endif %}
{% trans "No ballots available." %}
{%trans 'Invalid votes' %} {{ p.votesinvalidf }}
{%trans 'Votes cast' %} {{ p.votescastf }}
{% endif %} {% endwith %}
{% endblock %}