{% extends "assignment/base_assignment.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{{ block.super }} - {% trans "Assignment" %} "{{ assignment }}"{% endblock %} {% block content %}

{{ assignment }}

{{ assignment.description }}

{% trans "Candidates" %}

    {% for profile in assignment.profile.all|dictsort:"user.first_name" %}
  1. {{ profile }} {% if perms.assignment.can_manage_assignment %} {% if assignment.status == "sea" or assignment.status == "vot" %} {% endif %} {% endif %}
  2. {% empty %}
  3. {% trans "No candidates available." %}
  4. {% endfor %}
{% if assignment.status == "sea" or perms.assignment.can_manage_assignment and assignment.status == "vot" %} {% if perms.assignment.can_nominate_self or perms.assignment.can_nominate_other %}
{% csrf_token %} {% if perms.assignment.can_nominate_self %}

{% if user.profile in assignment.profile.all %} {%trans 'Withdraw self candidature' %} {% else %} {% if user.profile %} {%trans 'Self candidature' %} {% endif %} {% endif %}

{% endif %} {% if perms.assignment.can_nominate_other %} {% for field in form %} {{ field }} {% if perms.participant.can_see_participant and perms.participant.can_manage_participant %} {% endif %} {% endfor %}

{% endif %}
{% endif %} {% endif %}


{% trans "Election results" %}

{% if polls %} {% with ballotnumber=polls.count %} {% endwith %} {% for poll in polls %} {# if poll.published and not perms.assignment.can_manage_assignment or perms.assignment.can_manage_assignment #} {# endif #} {% endfor %} {% if assignment.profile.count > 0 and perms.assignment.can_manage_assignment and assignment.status == "vot" %} {% endif %} {% for vote in votes %} {% for v in vote|last %} {% endfor %} {% if assignment.profile.exists and perms.assignment.can_manage_assignment and assignment.status == "vot" %} {% endif %} {% endfor %} {% for poll in polls %} {% if poll.published and not perms.assignment.can_manage_assignment or perms.assignment.can_manage_assignment %} {% endif %} {% endfor %} {% if assignment.profile.exists and perms.assignment.can_manage_assignment and assignment.status == "vot" %} {% endif %} {% for poll in polls %} {% if poll.published and not perms.assignment.can_manage_assignment or perms.assignment.can_manage_assignment %} {% endif %} {% endfor %} {% if assignment.profile.exists and perms.assignment.can_manage_assignment and assignment.status == "vot" %} {% endif %}
{% trans "ballot" %}
{% trans "Candidates" %}{% if perms.assignment.can_manage_assignment %}{% endif %} {{ forloop.counter }}. {% trans 'ballot' %} {% if perms.assignment.can_manage_assignment %} {% if poll.published %} {% else %} {% endif %} {% endif %} {%trans 'New ballot' %}
{% with vote|first as candidate %} {% if candidate.1 %} {% if perms.assignment.can_manage_assignment %} {% else %} {% endif %} {% else %} {% if perms.assignment.can_manage_assignment %} {% endif %} {% 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 'Invalid votes' %} {{ poll.print_votesinvalid }}
{%trans 'Votes cast' %} {{ poll.print_votescast }}
{% else %} {% trans "No ballots available." %} {% if assignment.profile.count > 0 and perms.assignment.can_manage_assignment and assignment.status == "vot" %}

{%trans 'New ballot' %}

{% endif %} {% endif %}
{% endblock %}