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

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

{{ form_widget(form.submit) }} {% if access=="config" %} {% if mode=="updatetemplate" %} Annuler {% else %} Annuler {% endif %} {% else %} Annuler {% endif %} {% if mode=="update" %} Supprimer {% endif %} {% if mode=="updatetemplate" %} 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 %} {{ 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 %}
{{ 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 %}