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

{% if mode=="submit" %} Création page {% else %} Modification page {% endif %}

{{ form_widget(form.submit) }} {% if from=="child" %} Annuler {% else %} Annuler {% endif %} {% if mode=="update" and page.id>0%} 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.name) }} {{ form_row(form.pagetype) }}
{{ form_end(form) }} {% endblock %} {% block localscript %} {% endblock %}