{% extends "@ChillMain/layout.html.twig" %}

{% block sublayout_content %}
    <div class="row">
        <div class="col-md-9 my-5">

            {# Flash messages ! #}
            {% if app.session.flashbag.keys()|length > 0 %}
            <div class="row justify-content-center mb-5">

                {% for flashMessage in app.session.flashbag.get('success') %}
                    <div class="col-8 alert alert-success flash_message">
                        <span>{{ flashMessage|trans }}</span>
                    </div>
                {% endfor %}

                {% for flashMessage in app.session.flashbag.get('error') %}
                    <div class="col-8 alert alert-danger flash_message">
                        <span>{{ flashMessage|trans }}</span>
                    </div>
                {% endfor %}

                {% for flashMessage in app.session.flashbag.get('notice') %}
                    <div class="col-8 alert alert-warning flash_message">
                        <span>{{ flashMessage|trans }}</span>
                    </div>
                {% endfor %}

            </div>
            {% endif %}

            {% block layout_wvm_content %}<!-- content of the layoutWithVerticalMenu is empty -->
            {% endblock  %}
        </div>
        <div class="col-md-3">
            {% block vertical_menu_content %}<!-- vertical menu of the layoutWithVerticalMenu is empty -->
            {% endblock %}
        </div>
    </div>
{% endblock %}
