68 lines
2.5 KiB
Twig
68 lines
2.5 KiB
Twig
|
{% extends 'base.html.twig' %}
|
||
|
|
||
|
{% block body %}
|
||
|
{{ form_start(form) }}
|
||
|
<h1 class="page-header">
|
||
|
{% if mode=="update" %}
|
||
|
Modification Carrousel
|
||
|
{% elseif mode=="submit" %}
|
||
|
Création Carrousel
|
||
|
{% endif %}
|
||
|
</h1>
|
||
|
|
||
|
{{ form_widget(form.submit) }}
|
||
|
<a class="btn btn-secondary" href="{{ path('app_'~access~'_pagewidgetslide_list',{'idwidget':pagewidget.id,'usage':usage}) }}">Annuler</a>
|
||
|
|
||
|
{% if mode=="update" %}
|
||
|
<a href={{ path('app_'~access~'_pagewidgetslide_delete',{'idwidget':pagewidget.id,'id':entity.id,'usage':usage}) }}
|
||
|
class="btn btn-danger float-end"
|
||
|
data-method="delete" data-csrf="_token:{{ 'csrf' }}"
|
||
|
data-confirm="Êtes-vous sûr de vouloir supprimer cet enregistrement ?">
|
||
|
Supprimer
|
||
|
</a>
|
||
|
{% endif %}
|
||
|
|
||
|
<br><br>
|
||
|
|
||
|
{% 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="row clearfix">
|
||
|
<div class="col-md-8">
|
||
|
{{ form_row(form.title) }}
|
||
|
{{ form_row(form.subtitle) }}
|
||
|
|
||
|
<div style="width:100%; margin:10px auto; text-align:center;">
|
||
|
<img id="pagewidgetslide_image_img" src="{{ path("app_minio_image",{file:entity.image}) }}" style="padding:10px; width:100%;height:auto;margin:auto;display:block;margin-bottom:5px;background-color: var(--colorbgbodydark)">
|
||
|
<a class="btn btn-info btn-modal" style="width:110px" data-modalid="mymodallarge" data-modaltitle="Carrousel" data-modalurl="{{ path('app_'~access~'_pagewidgetslide_upload', {"type": "slide", 'idwidget':pagewidget.id, 'usage':usage, "reportinput": "#pagewidgetslide_image" }) }}" title='Ajouter un Icône'>Modifier</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="col-md-4">
|
||
|
{{ form_row(form.roworder) }}
|
||
|
{{ form_row(form.url) }}
|
||
|
<em>le mot clé #login# sera remplacé par le login de l'utilisateur</em><br><br>
|
||
|
{{ form_row(form.target) }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ form_end(form) }}
|
||
|
{% endblock %}
|
||
|
|