Skip to content
Snippets Groups Projects
Commit b69c6208 authored by Ben Adida's avatar Ben Adida
Browse files

don't show email link before election is frozen since that won't work anyways

parent c69f6380
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,9 @@ Voters {{voters_page.start_index}} - {{voters_page.end_index}} (of {{total_voter ...@@ -125,7 +125,9 @@ Voters {{voters_page.start_index}} - {{voters_page.end_index}} (of {{total_voter
{% if admin_p or not election.use_voter_aliases %} {% if admin_p or not election.use_voter_aliases %}
<td> <td>
{% if admin_p %} {% if admin_p %}
{% if election.frozen_at %}
[<a href="{% url "helios.views.voters_email" election.uuid %}?voter_id={{voter.voter_login_id}}">email</a>] [<a href="{% url "helios.views.voters_email" election.uuid %}?voter_id={{voter.voter_login_id}}">email</a>]
{% endif %}
[<a onclick="return confirm('are you sure you want to remove {{voter.name}} ?');" href="{% url "helios.views.voter_delete" election.uuid voter.uuid %}">x</a>] [<a onclick="return confirm('are you sure you want to remove {{voter.name}} ?');" href="{% url "helios.views.voter_delete" election.uuid voter.uuid %}">x</a>]
{% endif %} {% endif %}
<img class="small-logo" src="/static/auth/login-icons/{{voter.voter_type}}.png" alt="{{voter.voter_type}}" /> {{voter.name}}</td> <img class="small-logo" src="/static/auth/login-icons/{{voter.voter_type}}.png" alt="{{voter.voter_type}}" /> {{voter.name}}</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment