|
|
|
@ -7,14 +7,16 @@ |
|
|
|
{% for type in sonata_flashmessages_types() %} |
|
|
|
{% for type in sonata_flashmessages_types() %} |
|
|
|
{% set domain = domain is defined ? domain : null %} |
|
|
|
{% set domain = domain is defined ? domain : null %} |
|
|
|
{% for message in sonata_flashmessages_get(type, domain) %} |
|
|
|
{% for message in sonata_flashmessages_get(type, domain) %} |
|
|
|
{% if type != 'no_layout' %} |
|
|
|
|
|
|
|
<div class="alert alert-{{ type|sonata_status_class }} alert-dismissable"> |
|
|
|
<div class="alert alert-{{ type|sonata_status_class }} alert-dismissable"> |
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
|
|
|
<button |
|
|
|
|
|
|
|
type="button" |
|
|
|
|
|
|
|
class="close" |
|
|
|
|
|
|
|
data-dismiss="alert" |
|
|
|
|
|
|
|
aria-hidden="true" |
|
|
|
|
|
|
|
aria-label="{{ 'message_close'|trans({}, 'SonataCoreBundle') }}" |
|
|
|
|
|
|
|
>×</button> |
|
|
|
{{ message|raw }} |
|
|
|
{{ message|raw }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
|
|
|
|
{{ message|raw }} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|