Commit abb3f056 authored by Mat's avatar Mat

flashbag: avec la redirection, le message flashbag sera plutôt affiché dans le template read

parent b793a12b
...@@ -11,14 +11,6 @@ ...@@ -11,14 +11,6 @@
<h1>{{ block('title') }}</h1> <h1>{{ block('title') }}</h1>
<a href="{{ path('techno_gallery_read') }}"><i class="fas fa-arrow-left fa-fw"></i>Retour vers la liste</a> <a href="{{ path('techno_gallery_read') }}"><i class="fas fa-arrow-left fa-fw"></i>Retour vers la liste</a>
{% for label, messages in app.flashes({'success', 'warning', 'errors'}) %}
{% for message in messages %}
<div class="flash-{{ label }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{{ form_start(formImage) }} {{ form_start(formImage) }}
{{ form_errors(formImage) }} {{ form_errors(formImage) }}
......
...@@ -10,6 +10,14 @@ ...@@ -10,6 +10,14 @@
<h1>{{ block('title') }}</h1> <h1>{{ block('title') }}</h1>
{% for label, messages in app.flashes({'success', 'warning', 'errors'}) %}
{% for message in messages %}
<div class="flash-{{ label }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% for image in images %} {% for image in images %}
<div class="image"> <div class="image">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment