On ne met rien si il n'y a pas de description
This commit is contained in:
parent
f67ee64e10
commit
d3df3ac037
2 changed files with 4 additions and 0 deletions
|
@ -169,9 +169,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# Description de l'élection #}
|
{# Description de l'élection #}
|
||||||
|
{% if election.description %}
|
||||||
<div class="message is-primary">
|
<div class="message is-primary">
|
||||||
<div class="message-body">{{ election.description|linebreaksbr }}</div>
|
<div class="message-body">{{ election.description|linebreaksbr }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# Liste des questions #}
|
{# Liste des questions #}
|
||||||
{% for q in election.questions.all %}
|
{% for q in election.questions.all %}
|
||||||
|
|
|
@ -145,9 +145,11 @@
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{# Description de l'élection #}
|
{# Description de l'élection #}
|
||||||
|
{% if election.description %}
|
||||||
<div class="message is-primary">
|
<div class="message is-primary">
|
||||||
<div class="message-body">{{ election.description|linebreaksbr }}</div>
|
<div class="message-body">{{ election.description|linebreaksbr }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# Précisions sur les modalités de vote #}
|
{# Précisions sur les modalités de vote #}
|
||||||
{% if election.vote_restrictions %}
|
{% if election.vote_restrictions %}
|
||||||
|
|
Loading…
Reference in a new issue