{% extends 'base.html.twig' %} {% block title %}Mes pétitions{% endblock %} {% block stylesheets %} {% endblock %} {% block body %}

Mes pétitions

+ Nouvelle pétition
{% for label, ms in app.flashes %}{% for m in ms %}
{{ m }}
{% endfor %}{% endfor %} {% if petitions is empty %}
Aucune pétition pour le moment.
Créez-en une : elle restera en brouillon jusqu’à ce que vous décidiez de la publier.
{% endif %} {% set libelles = {'brouillon':'Brouillon','en_ligne':'En ligne','remise':'Remise','cloturee':'Clôturée'} %} {% for p in petitions %}
{% if p.imagePath %}
{% endif %}
{{ libelles[p.statut] ?? p.statut }}

{{ p.titre }}

{{ p.compteurSignatures }} signature{{ p.compteurSignatures > 1 ? 's' : '' }}{% if p.objectifSignatures %} sur {{ p.objectifSignatures }}{% endif %} {% if p.objectifSignatures %}
{% endif %}
Modifier {% if p.statut == 'brouillon' %}
{% endif %} {{ p.statut == 'brouillon' ? '👁️ Aperçu' : 'Voir la page' }}
{% endfor %}
{% endblock %}