{% extends 'base.html.twig' %} {% block title %}Affichage démotis{% endblock %} {% block body %}
{% for msg in app.flashes('notice') %}
Message : {{ msg }}
{% endfor %}

{{ proposition.title }}

{{ proposition.text }}

{% set diviseur = proposition.voteyes + proposition.voteno > 0 ? proposition.voteyes + proposition.voteno : 1 %}
{{ proposition.voteyes }}
{{ proposition.voteno }}

Commentaires :


{% for comment in comments %}
{{comment.author}} : {{comment.comment}}
{% else %} Pas de commentaire pour le moment.
{% endfor %}
{{ form_start(form) }} {{ form_widget(form.author) }} {{ form_widget(form.comment) }} {{ form_rest(form) }} {{ form_end(form) }}
{% endblock %}