{% extends 'base.html.twig' %}

{% block body %}

    {% include '/admin/menu_admin.html.twig' %}

    <!-- MAIN CONTENT-->
    <div id="main" class="z-0">

        <!-- TOPBAR-->
        {% include '/admin/topbar_admin.html.twig' %}

        <div class="container-fluid">
            <div class="row plr-16 ptb-24">
                <div class="col-xs-12 p-0">
                    <div class="bloc-base p-16">

                        {% for flashMessage in app.session.flashbag.get('error') %}
                            <div class="alert alert-danger">
                                Erreur :  {{ flashMessage }}
                            </div>
                        {% endfor %}

                        {% for flashMessage in app.session.flashbag.get('success') %}
                            <div class="alert alert-success">
                                Succès : {{ flashMessage }}
                            </div>
                        {% endfor %}

            {% block main %}{% endblock %}

                    </div>
                </div>
            </div>
        </div>

    </div>

{% endblock %}