{#
 # This file is part of SolidInvoice package.
 #
 # (c) Pierre du Plessis <open-source@solidworx.co>
 #
 # This source file is subject to the MIT license that is bundled
 # with this source code in the file LICENSE.
 #}

{% for type, flashMessage in app.session.flashbag.all() %}
    {% if type == 'error' %}
        {% set type = 'danger' %}
    {% endif %}

    {% for message in flashMessage %}
        <div class="alert alert-{{ type }} no-print">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                {{ message|trans }} <br />
        </div>
    {% endfor %}
{% endfor %}
