On déplace les dates de tenue des élections

This commit is contained in:
Tom Hubrecht 2021-04-08 00:09:39 +02:00
parent 0dc33106cd
commit 3fe0b52829

View file

@ -10,15 +10,6 @@
<div class="level-item">
<h1 class="title">{{ election.name }}</h1>
</div>
{# Dates d'ouverture de l'élection #}
<div class="level-item">
<span class="tag is-medium is-primary">{{ election.start_date|date:"d/m/Y H:i" }}</span>
<span class="icon">
<i class="fas fa-long-arrow-alt-right"></i>
</span>
<span class="tag is-medium is-primary">{{ election.end_date|date:"d/m/Y H:i" }}</span>
</div>
</div>
<div class="level-right is-flex-shrink-1 is-flex-grow-1">
@ -57,17 +48,34 @@
{% endif %}
</div>
</div>
<hr>
{# Confirmation de vote #}
{% if has_voted %}
<div class="block tag is-medium is-outlined is-success is-light">
<span class="icon">
<i class="fas fa-check"></i>
</span>
<span>{% trans "Votre vote a bien été enregistré." %}</span>
<div class="level">
{# Dates d'ouverture de l'élection #}
<div class="level-left">
<div class="level-item">
<span class="tag is-medium is-primary">{{ election.start_date|date:"d/m/Y H:i" }}</span>
<span class="icon">
<i class="fas fa-long-arrow-alt-right"></i>
</span>
<span class="tag is-medium is-primary">{{ election.end_date|date:"d/m/Y H:i" }}</span>
</div>
</div>
{# Confirmation de vote #}
{% if has_voted %}
<div class="level-right">
<div class="level-item">
<div class="tag is-medium is-outlined is-success is-light">
<span class="icon">
<i class="fas fa-check"></i>
</span>
<span>{% trans "Votre vote a bien été enregistré." %}</span>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
<hr>
{# Indications de connexion #}
{% if election.start_date < current_time and election.end_date > current_time %}