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