Skip to content

Commit

Permalink
Add dismissible alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Dec 22, 2017
1 parent c1f1d51 commit 387d349
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
<div class="container-fluid">
{% for key, messages in app.session.flashbag.all() %}
{% for message in messages %}
<div class="alert alert-{{ key }}" role="alert">{{ message }}</div>
<div class="alert alert-{{ key }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="{{ 'label.close'|trans({}, 'EDMBundle') }}"><span aria-hidden="true">&times;</span></button>
{{ message }}
</div>
{% endfor %}
{% endfor %}
</div>
Expand Down

0 comments on commit 387d349

Please sign in to comment.