File tree Expand file tree Collapse file tree 4 files changed +14
-39
lines changed Expand file tree Collapse file tree 4 files changed +14
-39
lines changed Original file line number Diff line number Diff line change 1
1
{% extends ' admin/layout.html.twig' %}
2
2
3
- {#
4
- Import macros used for displaying flash messages.
5
- See http://twig.sensiolabs.org/doc/tags/import.html
6
- #}
7
- {% import ' helper/messages.html.twig' as helper %}
8
-
9
3
{% block body_id ' admin_post_edit' %}
10
4
11
5
{% block main %}
12
6
<h1 >{{ ' title.edit_post' | trans({' %id%' : post .id }) }}</h1 >
13
7
14
- {{ helper. render_flash_messages ( ) }}
8
+ {{ include ( ' default/_flash_messages.html.twig ' ) }}
15
9
16
10
{{ include (' admin/blog/_form.html.twig' , {
17
11
form : edit_form ,
Original file line number Diff line number Diff line change 1
1
{% extends ' admin/layout.html.twig' %}
2
2
3
- {#
4
- Import macros used for displaying flash messages.
5
- See http://twig.sensiolabs.org/doc/tags/import.html
6
- #}
7
- {% import ' helper/messages.html.twig' as helper %}
8
-
9
3
{% block body_id ' admin_post_index' %}
10
4
11
5
{% block main %}
12
6
<h1 >{{ ' title.post_list' | trans }}</h1 >
13
7
14
- {{ helper. render_flash_messages ( ) }}
8
+ {{ include ( ' default/_flash_messages.html.twig ' ) }}
15
9
16
10
<table class =" table table-striped" >
17
11
<thead >
Original file line number Diff line number Diff line change
1
+ <div class =" messages" >
2
+ {% for message in app .session .flashBag .get (' success' ) %}
3
+ {# Bootstrap alert, see http://getbootstrap.com/components/#alerts #}
4
+ <div class =" alert alert-dismissible alert-success" role =" alert" >
5
+ <button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" >
6
+ <span aria-hidden =" true" >× </span >
7
+ </button >
8
+
9
+ {{ message | trans }}
10
+ </div >
11
+ {% endfor %}
12
+ </div >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments