<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>{% block title %}Administration{% endblock %}</title>
        {% block stylesheets %}
            <link rel="stylesheet" href="{{ asset('css/main.css') }}" />
            {% if app.session.get('theme') %}
                <link rel="stylesheet" href="{{ asset('css/override_color.css') }}" />
            {% else %}
                <script>genererCss({{ craue_setting('theme') }});</script>
            {% endif %}
        {% endblock %}
        <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
    </head>
    <body>
        {% include '::header_admin.html.twig' %}
        <div class="container">
            <section class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h1>{% block h1 %}{% endblock %}</h1>
                    </div>
                    <div class="panel-body">
                        {% block body %}{% endblock %}
                    </div>
                </div>
            </section>
        </div>
        {% include '::footer.html.twig' %}
        {% block javascripts %}
            <script type="text/javascript" src="{{ asset('js/main.js') }}"></script>
            <script type="text/javascript" src="{{ asset('js/notif.js') }}"></script>
            <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
            <script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
            <script type="text/javascript">{% include 'AppBundle:Site:App.js.twig' %}</script>
            {{ tinymce_init() }}
        {% endblock %}
    </body>
</html>
