{% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }}

{% if mode=="update" %} Modification Annonces = {{alert.title}} {% elseif mode=="submit" %} Création Annonces {% endif %}

{{ form_widget(form.submit) }} Annuler {% if mode=="update" %} Supprimer {% endif %}

{% if app.session.flashbag.has('error') %}
Erreur
{% for flashMessage in app.session.flashbag.get('error') %} {{ flashMessage }}
{% endfor %}
{% endif %} {% if app.session.flashbag.has('notice') %}
Information
{% for flashMessage in app.session.flashbag.get('notice') %} {{ flashMessage }}
{% endfor %}
{% endif %}
Informations
{{ form_row(form.title) }} {{ form_row(form.fghideable) }} {{ form_row(form.publishedat) }} {{ form_row(form.unpublishedat) }} {{ form_row(form.content) }}
Affectations
{{ form_row(form.alertcategory) }} {{ form_row(form.roles) }} {{ form_row(form.groups) }}
{{ form_end(form) }} {% endblock %}