On déplace les dates de tenue des élections
This commit is contained in:
parent
0dc33106cd
commit
3fe0b52829
1 changed files with 26 additions and 18 deletions
|
@ -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">
|
||||||
<span class="icon">
|
<div class="level-item">
|
||||||
<i class="fas fa-check"></i>
|
<span class="tag is-medium is-primary">{{ election.start_date|date:"d/m/Y H:i" }}</span>
|
||||||
</span>
|
<span class="icon">
|
||||||
<span>{% trans "Votre vote a bien été enregistré." %}</span>
|
<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>
|
</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 %}
|
||||||
|
|
Loading…
Reference in a new issue