{% extends "assignment/base_assignment.html" %} {% 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 %} {% else %} {% if user.profile %} {% 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 assignment.poll_set.all.count > 0 %} {% with ballotnumber=assignment.poll_set.all.count %} {% endwith %} {% for poll in assignment.poll_set.all %} {% 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 p in polls %} {% if p.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 p in polls %} {% if p.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 %}
{% 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' %} {{ p.votesinvalidf }}
{%trans 'Votes cast' %} {{ p.votescastf }}
{% else %} {% trans "No ballots available." %} {% if assignment.profile.count > 0 and perms.assignment.can_manage_assignment and assignment.status == "vot" %}

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