{% load crispy_forms_tags %} {% load user_groups %} {% is_ed_admin request.user as is_ed_admin %}
{% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %}

Eligible voters

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

Add new voter

{% crispy voter_add_form %}
{% if round.type == 'senior' %}
Add senior fellows
{% elif round.type == 'regular' %}
Add fellows
{% for specialty in round.nomination.profile.specialties.all %} {% endfor %}
{% endif %} {% 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 %} {% include "colleges/_voting_round_decision.html" with voting_round=round %} {% endif %} {% endif %}
{% if is_ed_admin %} {% if not round.is_closed %}
{% elif round.is_closed and not round.decision %}
{% endif %} {% endif %}