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

{% if mode=="update" %} {% if usage=="template" %} Modification Modèle de Page = {{page.name}} {% else %} Modification Page Widget = {{page.name}} {% endif %} {% elseif mode=="submit" %} Création Page Widget {% endif %}

{{ form_widget(form.submit) }} {% if access=="admin" %} Annuler {% else %} Annuler {% endif %} {% 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 %}
{% if form.roles is defined %}
{% else %}
{% endif %}
Informations
{{ form_row(form.name) }} {{ form_row(form.roworder) }} {{ form_row(form.fonticon) }} {{ form_row(form.maxwidth) }} {{ form_row(form.template) }}
{% if form.roles is defined %}
Affectations
{{ form_row(form.user) }} {{ form_row(form.roles) }} {{ form_row(form.groups) }}
{% endif %}
Template de Mise en Page
{{ form_end(form) }} {% endblock %} {% block localscript %} {% endblock %}