22 lines
609 B
Text
22 lines
609 B
Text
|
|
{% set types = {
|
|
'error': 'danger',
|
|
'success': 'success',
|
|
'notice': 'info',
|
|
'warning': 'warning'
|
|
} %}
|
|
|
|
{% if (flash.has()) %}
|
|
{% for type, messages in flash.getMessages() %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ types[type] }} alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
|
|
<strong>{{ type|capitalize }}</strong>
|
|
<p>
|
|
{{ message }}
|
|
</p>
|
|
</div>
|
|
{% endfor%}
|
|
{% endfor %}
|
|
{% endif %}
|