From 3fe0b52829b653b067e78db3f58aa14501b850e1 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 8 Apr 2021 00:09:39 +0200 Subject: [PATCH] =?UTF-8?q?On=20d=C3=A9place=20les=20dates=20de=20tenue=20?= =?UTF-8?q?des=20=C3=A9lections?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elections/templates/elections/election.html | 44 ++++++++++++--------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/elections/templates/elections/election.html b/elections/templates/elections/election.html index 80d4fdd..d21845e 100644 --- a/elections/templates/elections/election.html +++ b/elections/templates/elections/election.html @@ -10,15 +10,6 @@

{{ election.name }}

- - {# Dates d'ouverture de l'élection #} -
- {{ election.start_date|date:"d/m/Y H:i" }} - - - - {{ election.end_date|date:"d/m/Y H:i" }} -
@@ -57,17 +48,34 @@ {% endif %}
-
-{# Confirmation de vote #} -{% if has_voted %} -
- - - - {% trans "Votre vote a bien été enregistré." %} +
+ {# Dates d'ouverture de l'élection #} +
+
+ {{ election.start_date|date:"d/m/Y H:i" }} + + + + {{ election.end_date|date:"d/m/Y H:i" }} +
+
+ + {# Confirmation de vote #} + {% if has_voted %} +
+
+
+ + + + {% trans "Votre vote a bien été enregistré." %} +
+
+
+ {% endif %}
-{% endif %} +
{# Indications de connexion #} {% if election.start_date < current_time and election.end_date > current_time %}