{% extends 'management/base.html' %} {% load crispy_forms_filters %} {% load static %} {% block content %}

{{ election.title }}

Back
{% if not election.started %}
Election has not started yet.
{% if election.end_date and election.start_date %} Election period: {{ election.start_date|date:"l Y-m-d H:i:s" }} - {{ election.end_date|date:"l Y-m-d H:i:s" }} {% elif election.start_date %} Election starts {{ election.start_date|date:"l Y-m-d H:i:s" }} {% else %} This election needs to be started manually. {% endif %}

{% csrf_token %}
minutes
{% elif not election.closed %}
Election still open.
{% if election.end_date %} Election period: {{ election.start_date|date:"l Y-m-d H:i:s" }} - {{ election.end_date|date:"l Y-m-d H:i:s" }} {% else %} This election needs to be closed manually. {% endif %}

{% csrf_token %}
{% endif %}
{% if not election.closed %}

{% if election.voters_self_apply %}Applicants{% else %}Options{% endif %} {% if election.can_apply %} {% if election.voters_self_apply %}Add applicant{% else %}Add option{% endif %} {% endif %}


{% for application in applications %} {% endfor %}
# {% if election.voters_self_apply %}Applicant{% else %}Option{% endif %}
{{ forloop.counter }} {{ application.get_display_name }} {% if election.can_apply %}
{% csrf_token %}
{% if not application.voter %} {% endif %} {% endif %}
{% else %}

Result

{% include 'management/results.html' %}
Publish result
{% csrf_token %} {{ election_upload_application_form |crispy }}

Export result as CSV {% endif %}

Voters


Voters Cast Open
{{ election.number_voters }} {{ election.number_votes_cast }} {{ election.number_votes_open }}
{% endblock %} {% block footer_scripts %} {# Automatic reload of the page: #} {# - if another vote was cast#} {% endblock %}