mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge pull request #271 from amenophis/patch-1
Handle all Bootstrap alert types
This commit is contained in:
commit
d344745e7d
1 changed files with 2 additions and 1 deletions
|
|
@ -55,8 +55,9 @@
|
|||
{% endblock %}
|
||||
</div>
|
||||
<div class="span10" id="content">
|
||||
{% for type in ['success', 'error'] %}
|
||||
{% for type in ['success', 'error', 'info', 'warning'] %}
|
||||
{% for message in app.session.flashbag.get(type) %}
|
||||
{% set type = type == 'warning' ? 'block' : type %}
|
||||
<div class="alert alert-{{ type }}">
|
||||
{{ message }}
|
||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue