templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE {% block html_start %}{% endblock %}>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     {% block head %}
  5.         <meta charset="utf-8">
  6.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.         <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  8.         <link rel="shortcut icon" href="{{ asset('build/media/favicon.jpg') }}" type="image/x-icon">
  9.         <link rel="icon" href="{{ asset('build/media/favicon.jpg') }}" type="image/x-icon">
  10.         {#<link rel="manifest" href="{{ asset('manifest.json') }}">#}
  11.     {% endblock %}
  12.     <title>{% block title %}{{block('page_title')}}{% endblock %} {% if block('page_title') is defined %} | {% endif %}{{site.name}}</title>
  13.     {% block stylesheets %}
  14.         <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
  15.         {{ encore_entry_link_tags('app') }}
  16.     {% endblock %}
  17.     {% block head_javascripts %}
  18.         {#{% include 'bundles/AdminLTEBundle/layout/modal_add_list.html.twig' %}#}
  19.         {#<script src="{{asset('dist/assets/plugins/global/plugins.bundle.js')}}"></script>
  20.         <script src="{{asset('dist/assets/js/scripts.bundle.js')}}"></script>#}
  21.         {{ encore_entry_script_tags('app') }}
  22.     {% endblock %}
  23. </head>
  24. {% block body %}
  25. <body id="kt_body" class="{{ not app.request.get('modal')?'header-fixed header-tablet-and-mobile-fixed aside-enabled aside-fixed':'bg-white' }}" style="--kt-toolbar-height:55px;--kt-toolbar-height-tablet-and-mobile:55px">
  26.     <div class="page-loader flex-column bg-dark bg-opacity-25">
  27.         <span class="spinner-border text-primary" style="right: calc(50% - (22px / 2))" role="status"></span>
  28.         <span class="text-gray-800 fs-6 fw-semibold bg-secondary pt-15 p-5 badge">Chargement en cours...</span>
  29.     </div>
  30.     <div class="d-flex flex-column flex-root">
  31.         <div class="page d-flex flex-row flex-column-fluid  ">
  32.             <div class="overlay-layer  bg-dark bg-opacity-50">
  33.                 <div class="spinner-border text-primary" role="status">
  34.                     <span class="visually-hidden">Loading...</span>
  35.                 </div>
  36.             </div>
  37.             {% if not app.request.get('modal') %}
  38.                 {% block page_aside %}{% include 'layout/aside/_base.html.twig'  %}{% endblock %}
  39.             {% endif %}
  40.             <div class="wrapper d-flex flex-column flex-row-fluid overlay-wrapper" id="kt_wrapper">
  41.                 {% if not app.request.get('modal') %}
  42.                     {% block page_header %}
  43.                         {% include 'layout/header/_base.html.twig' with {'page_title':block('page_title'),'page_sub_title':block('page_sub_title') is defined ? block('page_sub_title'),"close_to_page_title":block('close_to_page_title') is defined ? block('close_to_page_title') } %}
  44.                     {% endblock %}
  45.                 {% else %}
  46.                     <div data-kt-swapper="true" data-kt-swapper-mode="prepend" data-kt-swapper-parent="{default: '#kt_content_container', 'lg': '#kt_header_nav'}" class="page-title d-flex align-items-center flex-wrap me-3 mb-5 mb-lg-0">
  47.                         <!--begin::Title-->
  48.                         <h1 class="d-flex align-items-center text-dark fw-bolder fs-3 my-1">{{block('page_title')}}
  49.                             <!--begin::Separator-->
  50.                             {% if block('page_sub_title') is defined %}
  51.                             <span class="h-20px border-gray-200 border-start ms-3 mx-2"></span>
  52.                             <!--end::Separator-->
  53.                             <!--begin::Description-->
  54.                             <small class="text-muted fs-7 fw-bold my-1 ms-1">{{block('page_sub_title')}}</small>
  55.                             <!--end::Description--></h1>
  56.                             {% endif %}
  57.                         <!--end::Title-->
  58.                     </div>
  59.                 {% endif %}
  60.                 <div class="content d-flex flex-column flex-column-fluid" id="kt_content">
  61.                     <div class="post d-flex flex-column-fluid" id="kt_post">
  62.                         <div id="kt_content_container" class="container-fluid" style="{{ app.request.get('modal')?'padding:0 10px':'' }}">
  63.                             {% include 'layout/custom_coockpit/_flash_messages.html.twig' %}
  64.                             <div class="toast align-items-center border-0 my-2 hide" role="alert" aria-live="assertive" aria-atomic="true">
  65.                                 <div class="d-flex">
  66.                                     <div class="toast-body"></div>
  67.                                     <button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
  68.                                 </div>
  69.                             </div>
  70.                             {% block page_content %}{% endblock %}
  71.                         </div>
  72.                     </div>
  73.                 </div>
  74.                 {% if not app.request.get('modal') %}
  75.                 {% block page_footer %}{% include 'layout/_footer.html.twig' %}{% endblock %}
  76.                 {% endif %}
  77.             </div>
  78.         </div>
  79.     </div>
  80.     {% block javascripts %}
  81.         {% include 'layout/modal_add_list.html.twig' %}
  82.         {#<script src="{{ path('translation_js') }}"></script>#}
  83.     {% endblock %}
  84. </body>
  85. {% endblock %}
  86. </html>