{% if app.request.xmlHttpRequest %}
{% set layout = '@SonataAdmin/ajax_layout.html.twig' %}
{% else %}
{% set layout = '@SonataAdmin/standard_layout.html.twig' %}
{% endif %}
{% extends layout %}
{% set config = getConfig() %} {# init config #}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('assets/vendor/datatables/media/css/dataTables.bootstrap.min.css') }}"/>
<link rel="stylesheet" href="{{ asset('assets/vendor/dropzone/dist/dropzone.css') }}"/>
{{ encore_entry_link_tags('admin') }}
<style>
{% include 'admin/core/admin.css.twig' %}
{% include 'admin/admin.css.twig' %}
</style>
{% endblock stylesheets %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('assets/vendor/datatables/media/js/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('assets/vendor/datatables/media/js/dataTables.bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/vendor/chart.js/dist/Chart.min.js') }}"></script>
<script src="{{ asset('assets/vendor/dropzone/dist/dropzone.js') }}"></script>
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ asset('assets/vendor/aggrid/aggrid_locale_fr.js') }}"></script>
{% if getenv('env') == 'dev' %}
<script src="{{ asset('assets/vendor/vuejs/vue.js') }}"></script>
{% else %}
<script src="{{ asset('assets/vendor/vuejs/vue.min.js') }}"></script>
{% endif %}
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
<script>{% include 'admin/core/admin.js.twig' %}</script>
<script>{% include 'admin/admin.js.twig' %}</script>
<script>{% include 'admin/admin_vue.js.twig' %}</script>
{{ encore_entry_script_tags('admin') }}
{% endblock javascripts %}
{% block logo %}
<a class="logo" href="{{ path('sonata_admin_dashboard') }}">
{# <img src="{{ asset('favicon.ico') }}" alt="{{ config.name }}">#}
</a>
{% endblock logo %}
{% block sonata_breadcrumb %}
{{ include('admin/menu/menu_list.html.twig') }}
{{ include('admin/menu/menu_add.html.twig') }}
<ul class="nav navbar-nav">
{% block top_result %}
{% endblock %}
</ul>
{% endblock %}
{% block sonata_top_nav_menu %}
<div class="navbar-custom-menu navbar-right">
<ul class="nav navbar-nav">
{{ include('/admin/menu/menu_user.html.twig') }}
{% block top_result_right %}
{% endblock %}
</ul>
</div>
{% endblock %}
{% block body_attributes -%}
class="sonata-bc {% block admin_lte_skin_class %}{{ _skin }}{% endblock %} sidebar-mini sidebar-collapse
{% if _use_select2 %}sonata-select2{% endif %}
{% if _use_icheck %}sonata-icheck{% endif %}
{% if app.request.cookies.get('sonata_sidebar_hide') -%}
sidebar-collapse
{%- endif -%}"
{%- endblock -%}
{% block tab_menu_navbar_header %}
{% if admin is defined %}
<h2 class="section-title">
{% block sectionTitle %}
{{ admin.label }}
{% endblock %}
</h2>
{% endif %}
{% endblock %}
{% block sonata_wrapper %}
{{ parent() }}
<div id="modal-container"></div>
{{ include('admin/control_sidebar.html.twig') }}
{% endblock sonata_wrapper %}
{% block sonata_sidebar_search %}{% endblock sonata_sidebar_search %}
{% block side_bar_nav %}
{{ include('/admin/menu/menu_left.html.twig') }}
{% endblock side_bar_nav %}
{% block side_bar_after_nav %}{% endblock side_bar_after_nav %}