|
- {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
- {% trans_default_domain ea.i18n.translationDomain %}
-
- <!DOCTYPE html>
- <html lang="{{ ea.i18n.htmlLocale }}" dir="{{ ea.i18n.textDirection }}">
- <head>
- {% block head_metas %}
- <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"/>
- {% endblock head_metas %}
-
- <title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title>
-
- {# {% block head_stylesheets %}
- <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}">
- {% endblock %} #}
-
- {% block configured_stylesheets %}
- {% for css_asset in ea.assets.cssFiles ?? [] %}
- <link rel="stylesheet" href="{{ asset(css_asset) }}">
- {% endfor %}
-
- {% for webpack_encore_entry in ea.assets.webpackEncoreEntries ?? [] %}
- {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
- {% block head_favicon %}
- <link rel="shortcut icon" href="{{ asset(ea.dashboardFaviconPath) }}">
- {% endblock %}
-
- {# {% block head_javascript %}
- <script src="{{ asset('bundles/easyadmin/app.js') }}"></script>
- {% endblock head_javascript %} #}
-
-
-
- {# {% if 'rtl' == ea.i18n.textDirection %}
- <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.rtl.css') }}">
- <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app-custom-rtl.css') }}">
- {% endif %} #}
-
- {% block configured_head_contents %}
- {% for htmlContent in ea.assets.headContents ?? [] %}
- {{ htmlContent|raw }}
- {% endfor %}
- {% endblock %}
- </head>
-
- {% block body %}
- <body id="{% block body_id %}{% endblock %}" class="antialiased {% block body_class %}{% endblock %}">
- {% block javascript_page_layout %}
- <script>
- document.body.classList.add(
- 'ea-content-width-' + (localStorage.getItem('ea/content/width') || '{{ ea.crud.contentWidth ?? ea.dashboardContentWidth ?? 'normal' }}'),
- 'ea-sidebar-width-' + (localStorage.getItem('ea/sidebar/width') || '{{ ea.crud.sidebarWidth ?? ea.dashboardSidebarWidth ?? 'normal' }}')
- );
- </script>
- {% endblock javascript_page_layout %}
-
- {% block wrapper_wrapper %}
- {% block flash_messages %}
- {{ include(ea.templatePath('flash_messages')) }}
- {% endblock flash_messages %}
-
- <div class="wrapper">
- TABLER
- {% block wrapper %}
-
- {# <header class="main-header">
- {% block header %}
- <nav class="navbar" role="navigation">
- {% block header_navbar %}
- <button id="navigation-toggler" type="button" aria-label="Toggle navigation">
- <i class="fa fa-fw fa-bars"></i>
- </button>
- {% endblock header_navbar %}
- </nav>
-
- </header> #}
-
- <aside class="navbar navbar-vertical navbar-expand-lg navbar-dark">
- <div class="container-fluid">
- {% block sidebar %}
-
- {% block header_logo %}
- <h1 class="navbar-brand navbar-brand-autodark">
- <a class="{{ ea.dashboardTitle|length > 14 ? 'logo-long' }}"
- title="{{ ea.dashboardTitle|striptags }}"
- href="{{ path(ea.dashboardRouteName) }}">
- {{ ea.dashboardTitle|raw }}
- </a>
- </h1>
- {% endblock header_logo %}
-
- <section class="sidebar">
- {% block main_menu_wrapper %}
- {{ include(ea.templatePath('main_menu')) }}
- {% endblock main_menu_wrapper %}
- </section>
-
- {% endblock sidebar %}
- </div>
- </aside>
-
- <div class="page-wrapper">
-
- <div class="sticky-top">
- <header class="navbar navbar-expand-md navbar-light sticky-top d-print-none">
- <div class="container-xl">
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
- data-bs-target="#navbar-menu">
- <span class="navbar-toggler-icon"></span>
- </button>
- <span class="push-menu">
- <i class="ti ti-antenna-bars-1"></i>
- </span>
- <div class="navbar-nav flex-row order-md-last">
- <div class="nav-item d-none d-md-flex me-3">
- <div class="btn-list">
- {#<a href="{{ path(homepage_route()) }}" class="btn btn-outline-white" target="_blank" rel="noreferrer">
- Afficher le site
- </a>#}
- </div>
- </div>
-
- <div class="nav-item dropdown">
- <a href="#" class="nav-link d-flex lh-1 text-reset p-0"
- data-bs-toggle="dropdown"
- aria-label="Open user menu">
- <span class="ti ti-user"></span>
- <div class="d-none d-xl-block ps-2">
- <div>{{ ea.user is null ? 'user.anonymous'|trans(domain = 'EasyAdminBundle') : ea.userMenu.name }}</div>
- {% if is_granted('ROLE_SUPER_ADMIN') %}
- <div class="mt-1 small text-muted">Superadmin</div>
- {% elseif is_granted('ROLE_ADMIN') %}
- <div class="mt-1 small text-muted">Admin</div>
- {% else %}
- <div class="mt-1 small text-muted">NC</div>
- {% endif %}
- </div>
- </a>
- {% block user_menu %}
- {% if ea.userMenu.items|length > 0 %}
- <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
- {% for item in ea.userMenu.items %}
- {% if item.isMenuSection %}
- <hr class="m-0"/>
- {% else %}
- <a href="{{ item.linkUrl }}"
- class="dropdown-item {{ item.cssClass }}"
- target="{{ item.linkTarget }}" rel="{{ item.linkRel }}"
- referrerpolicy="origin-when-cross-origin">
- {% if item.icon is not empty %}
- <i class="ta ta-{{ item.icon }}"></i>
- {% endif %}
- <span>{{ item.label }}</span>
- </a>
- {% endif %}
- {% endfor %}
- </div>
- {% endif %}
- {% endblock user_menu %}
- </div>
- </div>
- </div>
- </header>
- </div>
-
-
- {% block content %}
- {% block content_header_wrapper %}
- <div class="container-xl">
- <div class="page-header d-print-none">
- <div class="row align-items-center">
- {% set has_help_message = (ea.crud.helpMessage ?? '') is not empty %}
- {% block content_header %}
- <div class="col">
- <h2 class="page-title">
- {% block content_title %}{% endblock %}
- </h2>
- {% block content_help %}
- {% if has_help_message %}
- <div class="text-muted">
- {{ ea.crud.helpMessage|e('html_attr') }}
- </div>
- {% endif %}
- {% endblock %}
- </div>
-
- {% block page_actions_wrapper %}
- <div class="col-auto ms-auto d-print-none">
- <div class="btn-list">
- {% block page_actions %}{% endblock %}
- </div>
- </div>
- {% endblock %}
-
- {% endblock %}
- </div>
- </div>
- </div>
- {% endblock %}
-
-
- <div class="page-body">
- <div class="container-xl">
- {% block main %}{% endblock %}
- </div>
- </div>
-
- {% block content_footer_wrapper %}
- {% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %}
- {% if content_footer is not empty %}
- <footer class="footer footer-transparent d-print-none">
- <div class="container">
- <div class="row text-center align-items-center flex-row-reverse">
- {{ content_footer }}
- </div>
- </div>
- </footer>
- {% endif %}
- {% endblock %}
-
- {% endblock %}
- </div>
- {% endblock wrapper %}
- </div>
- {% endblock wrapper_wrapper %}
-
- {% block configured_javascripts %}
- {% for js_asset in ea.assets.jsFiles ?? [] %}
- <script src="{{ asset(js_asset) }}"></script>
- {% endfor %}
-
- {% for webpack_encore_entry in ea.assets.webpackEncoreEntries ?? [] %}
- {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry) }}
- {% endfor %}
- {% endblock %}
-
- {% block body_javascript %}{% endblock body_javascript %}
-
- {% block configured_body_contents %}
- {% for htmlContent in ea.assets.bodyContents ?? [] %}
- {{ htmlContent|raw }}
- {% endfor %}
- {% endblock %}
- </body>
- {% endblock body %}
- </html>
|