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

{{ election.title }}

Back
{% if not election.started %}
Election 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 %}

Applicants {% if election.can_apply %} Add applicant {% endif %}


{% for application in applications %} {% endfor %}
# Applicant
{{ 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
CSV JSON {% endif %}

Voters


Voters Cast Open
{{ election.number_voters }} {{ election.number_votes_cast }} {{ election.number_votes_open }}
{% endblock %}