{% 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, votes in vote_results.items %} {% for vote in votes %} {# Hier stimmt es noch nicht. Es muss rein, dass nur veröffentlichte Wahlergebnisse angezeigt werden sollen #} {% 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 '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 %}
{%trans 'Invalid votes' %} {{ poll.print_votesinvalid }}
{%trans 'Votes cast' %} {{ poll.print_votescast }}
{% elif assignment.profile.exists %} {% trans "No ballots available." %} {% endif %}
{% endblock %}