templates/admin/base_admin.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.     <meta charset="UTF-8"/>
  5.     <meta name="viewport"
  6.           content="width=device-width, initial-scale=1"/>
  7.     <title>{% block title %}{{ "admin.sidebar.dashboard"|trans }}{% endblock %}</title>
  8.     <link rel="icon" type="image/x-icon" href="{{ asset('favicon.png') }}">
  9.     {# Run `composer require symfony/webpack-encore-bundle`
  10.            and uncomment the following Encore helpers to start using Symfony UX #}
  11.     {% block stylesheets %}
  12.         {{ encore_entry_link_tags('appCss') }}
  13.     {% endblock %}
  14. </head>
  15. <body>
  16. <div class="h-screen flex flex-col">
  17.     <div class="bg-gray-900 xl:hidden {% if app.request.get("_route") == 'admin_app_login' %}hidden{% endif %} flex text-white focus:outline-none focus:text-white justify-between w-full p-6 items-center">
  18.         <button class="flex justify-between items-center space-x-3">
  19.             <img src="{{ asset('favicon.png') }}"
  20.                  alt="" class="w-6">
  21.             <p class="text-2xl leading-6">Coach</p>
  22.         </button>
  23.         <div aria-label="toggler"
  24.              class="flex justify-center items-center">
  25.             <button id="open"
  26.                     onclick="showNav(true)"
  27.                     aria-label="open"
  28.                     class="hidden focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-800">
  29.                 <img class="text-gray-800"
  30.                      src="https://tuk-cdn.s3.amazonaws.com/can-uploader/sidebar6-svg2.svg"
  31.                      alt="menu"/>
  32.             </button>
  33.             <button id="close"
  34.                     onclick="showNav(true)"
  35.                     aria-label="close"
  36.                     class="focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-800">
  37.                 <img class="text-gray-800"
  38.                      src="https://tuk-cdn.s3.amazonaws.com/can-uploader/sidebar6-svg3.svg"
  39.                      alt="close"/>
  40.             </button>
  41.         </div>
  42.     </div>
  43.     <section
  44.             class="flex flex-row">
  45.         {% if app.user %}
  46.             {% include ('admin/components/layouts/sidebar.html.twig') %}
  47.         {% endif %}
  48.         <section
  49.                 class="flex flex-col w-full h-90 lg:min-h-screen body">
  50.             
  51.             {% for type, alerts in app.flashes %}
  52.                 {% for message in alerts %}
  53.                     {{ include('admin/components/layouts/alerts.html.twig', {"key":type, "message": message }) }}
  54.                 {% endfor %}
  55.             {% endfor %}
  56.             {% block body %}{% endblock %}
  57.         </section>
  58.     </section>
  59. </div>
  60. {% block javascripts %}
  61.     {{ encore_entry_script_tags('app') }}
  62. {% endblock %}
  63. </body>
  64. </html>