{% load crispy_forms_tags %} {% load user_groups %} {% is_ed_admin request.user as is_ed_admin %}

Eligible voters

{% if not round.is_closed %} {% if is_ed_admin %}

Add new voter

{% crispy voter_add_form %}
Add senior fellows
{% comment %} If round is open and the viewer can vote, show the voting form {% endcomment %} {% elif session_fellowship and session_fellowship in round.eligible_to_vote.all and round.is_open %}
{% endif %} {% comment %} If round is closed show results if they exist {% endcomment %} {% else %}
{% include "colleges/_voting_results_box.html" with voting_round=round %}
{% if round.decision %}

Decision

{% if round.decision.outcome == 'elected' %}
{{ round.decision.get_outcome_display }}
{% elif round.decision.outcome == 'notelected' %}
{{ round.decision.get_outcome_display }}
{% elif round.decision.outcome == 'inconclusive' %}
{{ round.decision.get_outcome_display }}
{% endif %} {% if round.decision.comments %}

Decision comments

{{ round.decision.comments }} {% endif %} {% endif %}
{% endif %}
{% if is_ed_admin %} {% if not round.is_closed %}
{% elif round.is_closed and not round.decision %}
{% endif %} {% endif %}