From fc1b6b8b495464c82ba95f90a8e9457597aa162d Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sat, 17 Apr 2021 00:56:03 +0200 Subject: [PATCH] Add link to ballots & improve looks --- elections/templates/elections/ballots/rank.html | 2 -- elections/templates/elections/ballots/select.html | 2 -- elections/templates/elections/election.html | 14 +++++++++++++- .../templates/elections/election_ballots.html | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/elections/templates/elections/ballots/rank.html b/elections/templates/elections/ballots/rank.html index 149cd42..21b7a7f 100644 --- a/elections/templates/elections/ballots/rank.html +++ b/elections/templates/elections/ballots/rank.html @@ -1,5 +1,3 @@ -{% load i18n %} - diff --git a/elections/templates/elections/ballots/select.html b/elections/templates/elections/ballots/select.html index 75cc51a..13933f6 100644 --- a/elections/templates/elections/ballots/select.html +++ b/elections/templates/elections/ballots/select.html @@ -1,5 +1,3 @@ -{% load i18n %} -
diff --git a/elections/templates/elections/election.html b/elections/templates/elections/election.html index b71a54b..354b34d 100644 --- a/elections/templates/elections/election.html +++ b/elections/templates/elections/election.html @@ -15,12 +15,24 @@
- + {% trans "Votant·e·s" %}
+ {# Liste des bulletins #} + {% if election.results_public %} +
+ + + + + {% trans "Bulletins" %} + +
+ {% endif %} + {% if election.start_date < current_time %} {# Statut de l'élection #}
diff --git a/elections/templates/elections/election_ballots.html b/elections/templates/elections/election_ballots.html index 31c080e..f2f8a10 100644 --- a/elections/templates/elections/election_ballots.html +++ b/elections/templates/elections/election_ballots.html @@ -29,7 +29,7 @@
{# Tableau des bulletins par question #} -
+
{% for q in election.questions.all %}

{{ q.text }}