{% trans_default_domain "lcshop" %} <!DOCTYPE html> <html lang="{{ app.request.locale|split('_')|first|default('fr') }}" dir="{{ easyadmin_config('design.rtl') ? 'rtl' : 'ltr' }}"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate, nocache"/> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <meta name="generator" content="EasyAdmin"/> <title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title> {% block head_stylesheets %} <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/fontawesome-free/css/all.min.css') }}"> <!-- Theme style --> <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/datatables/responsive.bootstrap4.min.css') }}"> <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/select2/select2.min.css') }}"> <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/bootstrap/bootstrap-switch.min.css') }}"> <!-- Theme style --> <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/toastr/toastr.min.css') }}"> <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/adminlte.min.css') }}"> <!-- Google Font: Source Sans Pro --> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> {#<link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}">#} {% endblock %} {% block head_custom_stylesheets %} <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/custom.css') }}"> {% for asset_css in easyadmin_config('design.assets.css') %} <link rel="stylesheet" href="{{ asset(asset_css) }}"> {% endfor %} {% endblock head_custom_stylesheets %} {# {% if easyadmin_config('design.brand_color') != 'hsl(230, 55%, 60%)' %} <style> :root { --color-primary: {{ easyadmin_config('design.brand_color') }}; } </style> {% endif %} #} {% block head_favicon %} {% set favicon = easyadmin_config('design.assets.favicon') %} <link rel="icon" type="{{ favicon.mime_type }}" href="{{ asset(favicon.path) }}"/> {% endblock %} </head> {% block body %} <body class="{% block body_class %}layout-navbar-fixed sidebar-mini{% endblock %}"> {# <script> document.body.classList.add( 'easyadmin-content-width-' + (localStorage.getItem('easyadmin/content/width') || 'normal'), 'easyadmin-sidebar-width-' + (localStorage.getItem('easyadmin/sidebar/width') || 'normal') ); </script>#} {% block wrapper_wrapper %} <div class="wrapper"> {% block wrapper %} <!-- Navbar --> <nav class="main-header navbar navbar-expand navbar-white navbar-light"> {% block navbar %} <!-- Left navbar links --> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a> </li> </ul> <ul class="navbar-nav ml-auto lc-navbar"> {% set _user_name = easyadmin_read_property(app.user, easyadmin_config('user.name_property_path'))|default('user.unnamed'|trans(domain = 'EasyAdminBundle')) %} {% set _logout_path = easyadmin_logout_path() %} <li class="content-top navbar-custom-menu"> {% block header_custom_menu %} <div class="btn-group"> <button class="btn btn-block dropdown-toggle" data-toggle="dropdown" data-placement="bottom"> <i class="fa fa-user-alt"></i> <span class="user-name">{{ _user_name }}</span> </button> <div class="dropdown-menu"> <a class="dropdown-item" href="#"><i class="fa fa-user-alt"></i> {{ "action.user.account"|trans }} </a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="{{ _logout_path }}"><i class="fa fa-sign-out-alt"></i> {{ "action.user.logout"|trans }} </a> </div> </div> {% endblock header_custom_menu %} </li> <li> {% if is_granted('ROLE_ADMIN') %} <form action="{{ path('admin_switch_merchant') }}" method="post"> <label for="switch-merchant"><i class="fa fa-store"></i> {{ 'action.switchMerchant'|trans() }} : </label> <select id="switch-merchant" data-allow-clear="false" data-width="auto" class="select2" name="id_merchant"> {% for merchant in merchants %} <option value="{{ merchant.id }}" {% if current_merchant and current_merchant.id == merchant.id %}selected="selected"{% endif %}> {{ merchant.title }} </option> {% endfor %} </select> </form> {% else %} {% if current_merchant %} {{ current_merchant.title }} {% endif %} {% endif %} </li> <li> <a target="_blank" class="btn btn-outline-success" href="{{ merchantUtils.getMerchantUser.getMerchantConfig('url') }}">Afficher le site</a> </li> </ul> {% endblock navbar %} </nav> <!-- Main Sidebar Container --> <aside class="main-sidebar sidebar-dark-primary elevation-4"> {% block aside %} {% block aside_logo %} <a class="brand-link {{ easyadmin_config('site_name')|length > 14 ? 'logo-long' }}" title="{{ easyadmin_config('site_name')|striptags }}" href="{{ path('easyadmin') }}"> {{ easyadmin_config('site_name')|raw }} <span>Besançon</span> </a> {% endblock aside_logo %} <!-- Sidebar --> <div class="sidebar"> <nav class="mt-2"> <!-- Add icons to the links using the .nav-icon class with font-awesome or any other icon font library --> {% block main_menu_wrapper %} {{ include([ _entity_config is defined ? _entity_config.templates.menu, easyadmin_config('design.templates.menu'), '@LcShop/backend/default/menu.html.twig' ]) }} {% endblock main_menu_wrapper %} </nav> </div> {% endblock aside %} </aside> <div class="content-wrapper"> {% block flash_messages %} {% include '@LcShop/backend/default/block/flash_messages.html.twig' %} {% endblock flash_messages %} {% block content_header_wrapper %} {% set _has_content_help = _entity_config is defined and _entity_config[app.request.query.get('action')]['help']|default(false) %} <section class="content-header {{ _has_content_help ? 'has-content-help' }}"> <div class="container-fluid"> {% block content_header %} <div class="d-flex flex-row justify-content-between align-content-center w-100"> <div class="content-header-title"> <h1 class="title">{% block content_title %}{% endblock %}</h1> </div> {% block global_actions_wrapper %} <div class="global-actions">{% block global_actions %}{% endblock %}</div> {% endblock %} </div> {% block content_help %} {% if _entity_config is defined and _entity_config[app.request.query.get('action')]['help']|default(false) %} <div class="content-header-help"> {{ _entity_config[app.request.query.get('action')]['help']|trans(domain = _entity_config.translation_domain)|raw }} </div> {% endif %} {% endblock content_help %} {% endblock content_header %} </div> </section> {% endblock content_header_wrapper %} <section id="main" class="content"> <div class="container-fluid"> {% block main %}{% endblock %} </div> </section> {% block content_footer_wrapper %} <section class="content-footer"> {% block content_footer %}{% endblock %} </section> {% endblock %} </div> {% endblock wrapper %} <footer class="main-footer"> <div class="float-right d-none d-sm-block"> <b>Version</b> 1.0 </div> <strong>Copyright © {{ 'now'|date('Y') }} <a href="http://laclic.fr">La Clic</a>.</strong> All rights reserved. </footer> </div> {% endblock wrapper_wrapper %} {#Initilisation des varibles requis dans le JS #} <script> const DOMAIN = "{{ app.request.getSchemeAndHttpHost() }}"; </script> {% block plugin_javascript %} <!-- jQuery --> <script src="{{ asset('bundles/lcshop/js/backend/plugin/jquery/jquery.min.js') }}"></script> <!-- Bootstrap 4 --> <script src="{{ asset('bundles/lcshop/js/backend/plugin/bootstrap/bootstrap.bundle.min.js') }}"></script> <script src="{{ asset('bundles/lcshop/js/backend/plugin/toastr/toastr.min.js') }}"></script> <script src="{{ asset('bundles/lcshop/js/backend/plugin/select2/select2.min.js') }}"></script> <script src="{{ asset('bundles/lcshop/js/backend/plugin/bootstrap/bootstrap-switch.min.js') }}"></script> <!-- AdminLTE App --> <script src="{{ asset('bundles/lcshop/js/backend/plugin/adminlte.min.js') }}"></script> <script src="{{ asset('bundles/lcshop/js/backend/script/default/utils.js') }}"></script> {% endblock plugin_javascript %} {% block script_javascript %} <script src="{{ asset('bundles/lcshop/js/backend/script/default/init-common.js') }}"></script> {% endblock script_javascript %} {% block add_script_javascript %}{% endblock add_script_javascript %} </body> {% endblock body %} </html>