{% extends "core/base.jinja" %} {% block title %} {% trans %}Election list{% endtrans %} {% endblock %} {% block content %} {% if object.has_voted(request.user) %} A voté {% endif %}

{{object.title}}

{{object.description}}

{% trans %}End :{% endtrans %} {{object.end_date}}

{% if object.election_list.exists() %} {% set nb_list = object.election_list.all().count() + 1 -%} {% for liste in object.election_list.all() %} {% if object.is_candidature_active -%} {% set nb_list = nb_list -%} {% else -%} {% set nb_list = nb_list + 1 -%} {% endif -%} {% endfor %} {% if not object.is_candidature_active -%} {% endif %} {% for role in object.role.all() %} {% for liste in object.election_list.all() %} {% endfor %} {% if not object.is_candidature_active -%} {% endif %} {% endfor %}
{{liste.title}}{% trans %}Blank vote{% endtrans %}
{{role.title}}
    {% for candidature in role.candidature.filter(election_list=liste) %}
  • {{candidature.user.first_name}} {{candidature.user.last_name}} {{candidature.user.nick_name or ''}} {% if candidature.user.profile_pict %}
    {% trans %}Profile{% endtrans %} {% endif %}
    {{candidature.program or ''}}
  • {% endfor %}
{% endif %} {% if object.is_candidature_active -%} candidature {% endif -%} {% endblock %}