diff --git a/elections/templates/elections/election_admin.html b/elections/templates/elections/election_admin.html index 4ff93fe..e4458cb 100644 --- a/elections/templates/elections/election_admin.html +++ b/elections/templates/elections/election_admin.html @@ -57,8 +57,16 @@ {% elif election.end_date < current_time %} - {# Dépouillement #} {% if not election.tallied %} + {# Liste des votants #} + + + + + {% trans "Liste des votant·e·s" %} + + + {# Dépouillement #} diff --git a/elections/templates/elections/election_voters.html b/elections/templates/elections/election_voters.html index 5a219ef..821a567 100644 --- a/elections/templates/elections/election_voters.html +++ b/elections/templates/elections/election_voters.html @@ -18,7 +18,7 @@
- + diff --git a/elections/views.py b/elections/views.py index e2b31da..9265406 100644 --- a/elections/views.py +++ b/elections/views.py @@ -435,6 +435,9 @@ class ElectionVotersView(NotArchivedMixin, DetailView): and election.end_date < timezone.now() and not election.tallied ) + context["return_pattern"] = ( + "election." + "admin" if context["can_delete"] else "view" + ) return context