66 lines
2.1 KiB
Twig
66 lines
2.1 KiB
Twig
|
{% extends '@CadolesCore/base.html.twig' %}
|
||
|
|
||
|
{% block pagewrapper %}
|
||
|
{{ form_start(form) }}
|
||
|
<h1 class="page-header">
|
||
|
Modification Page {{ entity.pagecategory.name}} = {{entity.name}}
|
||
|
</h1>
|
||
|
|
||
|
<p>
|
||
|
{{ form_widget(form.submit) }}
|
||
|
{% if access=="config" %}
|
||
|
<a class="btn btn-default" href="{{ path('cadoles_portal_config_page_view',{id:entity.id}) }}">Annuler</a>
|
||
|
{% else %}
|
||
|
<a class="btn btn-default" href="{{ path('cadoles_core_home',{id:entity.id}) }}">Annuler</a>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if mode=="update" %}
|
||
|
<a href={{ path('cadoles_portal_'~access~'_page_delete',{'id':entity.id}) }}
|
||
|
class="btn btn-danger pull-right"
|
||
|
data-method="delete" data-csrf="_token:{{ 'csrf' }}"
|
||
|
data-confirm="Êtes-vous sûr de vouloir supprimer cette page ?">
|
||
|
Supprimer
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
</p>
|
||
|
|
||
|
{% if app.session.flashbag.has('error') %}
|
||
|
<div class='alert alert-danger' style='margin: 5px 0px'>
|
||
|
<strong>Erreur</strong><br>
|
||
|
{% for flashMessage in app.session.flashbag.get('error') %}
|
||
|
{{ flashMessage }}<br>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if app.session.flashbag.has('notice') %}
|
||
|
<div class='alert alert-info' style='margin: 5px 0px'>
|
||
|
<strong>Information</strong><br>
|
||
|
{% for flashMessage in app.session.flashbag.get('notice') %}
|
||
|
{{ flashMessage }}<br>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
|
||
|
<div class="form-group row clearfix">
|
||
|
{% if form.roles is defined %}
|
||
|
<div class="col-md-8">
|
||
|
{% else %}
|
||
|
<div class="col-md-12">
|
||
|
{% endif %}
|
||
|
|
||
|
{{ form_row(form.name) }}
|
||
|
{{ form_row(form.roworder) }}
|
||
|
{{ form_row(form.fonticon) }}
|
||
|
</div>
|
||
|
|
||
|
{% if form.roles is defined %}
|
||
|
<div class="col-md-4">
|
||
|
{{ form_row(form.user) }}
|
||
|
{{ form_row(form.roles) }}
|
||
|
{{ form_row(form.groups) }}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{{ form_end(form) }}
|
||
|
{% endblock %}
|