{% extends "beamer.html" %} {% block title %}{{ block.super }} - {{ item.title }}{% endblock %} {% block content %} {% trans "Election" %}:

{{ item.assignment }}

{% if item.assignment.status == "sea" or item.assignment.status == "vot" %} {% endif %}

{{ 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 %} {% if item.assignment.poll_set.all.count > 0 %}


{% trans "Election results" %}

{% for poll in item.assignment.poll_set.all %} {% endfor %} {% for vote in votes %} {% for v in vote|last %} {% endfor %} {% empty %} {% endfor %}
{% trans "Candidates" %}{{forloop.counter}}. {% trans "ballot" %}
{% with vote|first as candidate %} {{ candidate.0 }} {% if candidate.1 %} {% trans 'not elected' %} {% else %} {% trans 'elected' %} {% endif %} {% 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." %}
{% endif %}
{% endblock %}