{% 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 elections %}
There are no elections for this session
{% else %} {% for election in elections %}
{{ election.title }} {% if not election.started and election.start_date %} Starts at {{ election.start_date|date:"Y-m-d H:i:s" }} {% elif not election.started %} Needs to be started manually {% elif election.is_open and election.end_date %} Open until {{ election.end_date|date:"Y-m-d H:i:s" }} {% elif election.closed %} Closed {% else %} Open, needs to be closed manually {% endif %}
{% endfor %} {% endif %}

Voters

E-Mail
{% for voter in voters %}
{{ voter }}
{% csrf_token %}
{% endfor %}
{% for election in elections %} {% endfor %} {% endblock %}