From a5fdc841614d89942bec156d1f788db106038295 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 19 Mar 2021 10:28:25 +0100 Subject: [PATCH] =?UTF-8?q?On=20d=C3=A9place=20le=20bouton=20de=20vote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elections/templates/elections/election.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/elections/templates/elections/election.html b/elections/templates/elections/election.html index 2d880c0..7ae6f92 100644 --- a/elections/templates/elections/election.html +++ b/elections/templates/elections/election.html @@ -38,7 +38,22 @@
{# Indications de connexion #} -{% if election.start_date < current_time and election.end_date > current_time and not can_vote %} +{% if election.start_date < current_time and election.end_date > current_time %} +{% if can_vote %} +
+ +
+{% else %} +
{% if election.restricted %} @@ -77,6 +92,7 @@
{% endif %} +{% endif %} {# Description de l'élection #}
@@ -87,6 +103,7 @@ {% for q in election.questions.all %}
+ {% comment %} {% if can_vote and election.start_date < current_time and election.end_date > current_time %} @@ -95,6 +112,7 @@ {% trans "Voter" %} {% endif %} + {% endcomment %} {{ q.text }} {% if q in cast_questions %}