{%  if webservicereadonly %}
    <div class="alert alert-warning">
        <p>Service is working in readonly-mode. Some services may not work as expected!</p>
    </div>
{% endif %}
{% if app.user.username is defined and app.user.username == 'admin' and not app.request.isXmlHttpRequest() %}
    <div class="alert alert-danger">
        <p><strong>Security issue:</strong> change username and password for this user immediately! <a href="{{ path('_sso_backend_security_user_edit', {userId: 1}) }}" class="btn btn-danger btn-sm">Edit user</a> </p>
    </div>
{% endif %}
{% set messages = app.session.flashbag.get('error') %}
{% if messages|length > 0 %}
    <div class="alert alert-danger">
        <a href="#" class="close" data-dismiss="alert">&times;</a>
        {% for flashMessage in messages %}
            <p>{{ flashMessage }}</p>
        {% endfor %}
    </div>
{% endif %}
{% set messages = app.session.flashbag.get('info') %}
{% if messages|length > 0 %}
    <div class="alert alert-info">
        <a href="#" class="close" data-dismiss="alert">&times;</a>
        {% for flashMessage in messages %}
            <p>{{ flashMessage }}</p>
        {% endfor %}
    </div>
{% endif %}
{% set messages = app.session.flashbag.get('success') %}
{% if messages|length > 0 %}
    <div class="alert alert-success">
        <a href="#" class="close" data-dismiss="alert">&times;</a>
        {% for flashMessage in messages %}
            <p>{{ flashMessage }}</p>
        {% endfor %}
    </div>
{% endif %}
