firefly-iii/resources/twig/partials/flashes.twig

28 lines
1.3 KiB
Twig
Raw Normal View History

2015-05-01 11:44:49 -05:00
{% if Session.has('success') %}
2015-06-27 01:06:24 -05:00
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">{{ 'close'|_ }}</span></button>
<strong>Success!</strong> {{ Session.get('success') }}
</div>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if Session.has('info') %}
2015-06-27 01:06:24 -05:00
<div class="alert alert-info alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">{{ 'close'|_ }}</span></button>
2015-07-18 02:49:59 -05:00
<strong>Info:</strong> {{ Session.get('info')|raw }}
2015-06-27 01:06:24 -05:00
</div>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if Session.has('warning') %}
2015-06-27 01:06:24 -05:00
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">{{ 'close'|_ }}</span></button>
<strong>Warning!</strong> {{ Session.get('warning') }}
</div>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if Session.has('error') %}
2015-06-27 01:06:24 -05:00
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">{{ 'close'|_ }}</span></button>
2015-07-18 02:49:59 -05:00
<strong>Error!</strong> {{ Session.get('error')|raw }}
2015-06-27 01:06:24 -05:00
</div>
2015-05-01 11:44:49 -05:00
{% endif %}