|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- {% 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/select2/select2-bootstrap.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.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')|lc_cache }}">
- {% for asset_css in easyadmin_config('design.assets.css') %}
- <link rel="stylesheet" href="{{ asset(asset_css)|lc_cache }}">
- {% 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 id="pdl-body"
- class="{% block body_class %}sidebar-mini layout-navbar-fixed{% endblock %} {% block body_class_extend %}{% 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 = app.user.name %}
- {% 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>
- {% if 'localhost' in app.request.getSchemeAndHttpHost() %}
- <a target="_blank" class="btn btn-outline-success"
- href="{{ app.request.getSchemeAndHttpHost() }}">Afficher le site</a>
- {% else %}
- <a target="_blank" class="btn btn-outline-success"
- href="{{ merchantUtils.getMerchantUser.getMerchantConfig('url') }}">Afficher le
- site</a>
- {% 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 }}
- </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 %}
- {# {{ dump(_request_parameters) }} #}
- <button type="button" class="btn-sm btn-primary btn-add-reminder "
- data-url="{{ path('easyadmin', { action: 'new', entity: 'Reminder' }) }}">
- + Ajouter pense bête
- </button>
- </div>
- {% endblock %}
- </div>
-
- {% block content_reminders %}
- {% if reminders is defined and reminders|length >0 %}
- <div class="head-reminders card card-outline card-danger">
- {% include '@LcShop/backend/default/block/list_reminders.html.twig' %}
- </div>
- {% endif %}
- {% endblock %}
-
- {% 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 content">
- {% 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/select2/select2.full.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')|lc_cache }}"></script>
- {% endblock plugin_javascript %}
-
- {% block script_javascript %}
- <script src="{{ asset('bundles/lcshop/js/backend/script/default/init-common.js')|lc_cache }}"></script>
- {% endblock script_javascript %}
-
- {% block add_script_javascript %}{% endblock add_script_javascript %}
- </body>
- {% endblock body %}
- </html>
|