On ne met rien si il n'y a pas de description

This commit is contained in:
Tom Hubrecht 2021-05-26 14:33:31 +02:00
parent f67ee64e10
commit d3df3ac037
2 changed files with 4 additions and 0 deletions

View file

@ -169,9 +169,11 @@
{% endif %}
{# Description de l'élection #}
{% if election.description %}
<div class="message is-primary">
<div class="message-body">{{ election.description|linebreaksbr }}</div>
</div>
{% endif %}
{# Liste des questions #}
{% for q in election.questions.all %}

View file

@ -145,9 +145,11 @@
<hr>
{# Description de l'élection #}
{% if election.description %}
<div class="message is-primary">
<div class="message-body">{{ election.description|linebreaksbr }}</div>
</div>
{% endif %}
{# Précisions sur les modalités de vote #}
{% if election.vote_restrictions %}