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

{{ session.title }}

Add Election {% if session.meeting_link %}
Meeting on {{ session.meeting_link }} {% endif %} {% if session.start_date %}
Starts on {{ session.start_date }} {% endif %}
{% if not existing_elections %}
There are no elections for this session
{% else %} {% if open_elections %}
Open elections
{% for election in open_elections %} {% include 'management/session_election_item.html' %} {% endfor %} {% endif %} {% if upcoming_elections %}
Upcoming elections
{% for election in upcoming_elections %} {% include 'management/session_election_item.html' %} {% endfor %} {% endif %} {% if published_elections %}
Published Results
{% for election in published_elections %} {% include 'management/session_election_item.html' %} {% endfor %} {% endif %} {% if closed_elections %}
Closed elections
{% for election in closed_elections %} {% include 'management/session_election_item.html' %} {% endfor %} {% endif %} {% endif %}
{# The following div is only needed to update the voter's list#}
{% if voters %}
E-Mail [?]
{% for voter in voters %}
{{ voter }}
{% csrf_token %}
{% endfor %}
{% else %}
No voters were added yet
{% endif %}
{% endblock %} {% block footer_scripts %} {# Automatic reload of the page: #} {# - either if the start date / end date of a election is due#} {# - or if the admin started / stopped one election and the page is notified with a websocket#} {# - or if a voter has logged in #} {% endblock %}