|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- {% 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/dataTables.bootstrap4.min.css') }}">
- <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') }}">
- <!-- 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 %}
- {% for css_asset in easyadmin_config('design.assets.css') %}
- <link rel="stylesheet" href="{{ asset(css_asset) }}">
- {% 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="layout-navbar-fixed sidebar-mini">
- {# <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" class="select2-no-search" 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>
- </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(_entity_config is defined ? _entity_config.templates.flash_messages : '@EasyAdmin/default/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' }}">
- {% 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 %}
- </section>
- {% endblock content_header_wrapper %}
-
- <section id="main" class="content">
- {% block main %}{% endblock %}
- </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 body_javascript %}
- <!-- jQuery -->
- <script src="{{ asset('bundles/lcshop/js/backend/plugin/jquery.min.js') }}"></script>
- <!-- Bootstrap 4 -->
- <script src="{{ asset('bundles/lcshop/js/backend/plugin/bootstrap.bundle.min.js') }}"></script>
- <script src="{{ asset('bundles/lcshop/js/backend/plugin/toastr/toastr.min.js') }}"></script>
- <!-- AdminLTE App -->
- <script src="{{ asset('bundles/lcshop/js/backend/plugin/adminlte.min.js') }}"></script>
-
- {% endblock body_javascript %}
-
- {% block body_custom_javascript %}
- {% for js_asset in easyadmin_config('design.assets.js') %}
- <script src="{{ asset(js_asset) }}"></script>
- {% endfor %}
- {% endblock body_custom_javascript %}
-
- </body>
- {% endblock body %}
- </html>
|