Ajoute un message lorsque le vote n'est pas encore ouvert

This commit is contained in:
Tom Hubrecht 2021-12-20 17:19:49 +01:00
parent 361ef6d80b
commit ca1fdff3cb
3 changed files with 105 additions and 73 deletions

View file

@ -139,7 +139,23 @@
{% endif %}
{# Indications de connexion #}
{% if election.start_date < current_time and election.end_date > current_time %}
{% if election.start_date > current_time %}
<div class="tile is-ancestor">
<div class="tile is-parent">
<div class="tile is-child notification is-primary is-light">
<div class="has-text-centered mb-2">
<p class="subtitle">
<span class="icon">
<i class="fas fa-clock"></i>
</span>
<span class="ml-3">{% blocktrans with _date=election.start_date|date:"d/m/Y" _time=election.start_date|date:_("H:i") %}Le vote ouvrira le <b>{{ _date }}</b> à <b>{{ _time }}</b>.{% endblocktrans %}</span>
</p>
<p>{% trans "Revenez sur cette page quand le vote sera ouvert pour vous connecter et participer." %}</p>
</div>
</div>
</div>
</div>
{% elif election.end_date > current_time %}
{% if can_vote %}
<div class="columns is-centered tile is-ancestor">
<div class="column is-one-third tile is-parent">