From b91b12a71063820081b5dc08dc37fd2b4a3fd8db Mon Sep 17 00:00:00 2001
From: Tobias Juelg <tobias@juelg.net>
Date: Sat, 1 May 2021 19:18:41 +0200
Subject: [PATCH] Generalize applicant to option

---
 management/templates/management/results.html     | 2 +-
 vote/templates/vote/index_election_item.html     | 2 +-
 vote/templates/vote/spectator_election_item.html | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/management/templates/management/results.html b/management/templates/management/results.html
index d5fad3d..293956c 100644
--- a/management/templates/management/results.html
+++ b/management/templates/management/results.html
@@ -3,7 +3,7 @@
   <thead>
   <tr>
     <th scope="col">#</th>
-    <th scope="col">Applicant</th>
+    <th scope="col">{% if election.voters_self_apply %}Applicant{% else %}Option{% endif %}</th>
     <th scope="col">Yes</th>
     <th scope="col">No</th>
     {% if not election.disable_abstention %}
diff --git a/vote/templates/vote/index_election_item.html b/vote/templates/vote/index_election_item.html
index d9ceaf2..442113a 100644
--- a/vote/templates/vote/index_election_item.html
+++ b/vote/templates/vote/index_election_item.html
@@ -32,7 +32,7 @@
             <thead class="thead-dark">
             <tr>
               <th scope="col">#</th>
-              <th scope="col">Applicant</th>
+              <th scope="col">{% if election.voters_self_apply %}Applicant{% else %}Option{% endif %}</th>
               <th scope="col">Yes</th>
               <th scope="col">No</th>
               <th scope="col">Abstention</th>
diff --git a/vote/templates/vote/spectator_election_item.html b/vote/templates/vote/spectator_election_item.html
index 538b294..1559961 100644
--- a/vote/templates/vote/spectator_election_item.html
+++ b/vote/templates/vote/spectator_election_item.html
@@ -18,7 +18,7 @@
             <thead class="thead-dark">
             <tr>
               <th scope="col">#</th>
-              <th scope="col">Applicant</th>
+              <th scope="col">{% if election.voters_self_apply %}Applicant{% else %}Option{% endif %}</th>
               <th scope="col">Yes</th>
               <th scope="col">No</th>
               <th scope="col">Abstention</th>
-- 
GitLab