templates/base.html.twig line 1

Open in your IDE?
  1. <html lang="fr">
  2.     <head>
  3.         <meta charset="utf-8"/>
  4.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  5.         <meta name="description" content=""/>
  6.         <meta name="author" content=""/>
  7.         <title>Appli M&J -
  8.             {% block title %}{% endblock %}
  9.         </title>
  10.         <link href="https://getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css" rel="stylesheet"/>
  11.         <link
  12.         rel="icon" type="image/x-icon" href="assets/favicon.ico"/>
  13.         <!-- Bootstrap icons-->
  14.         <link
  15.         href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet"/>
  16.         <!-- Google fonts-->
  17.         <link rel="preconnect" href="https://fonts.gstatic.com"/>
  18.         <link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,600;1,600&amp;display=swap" rel="stylesheet"/>
  19.         <link href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,500;0,600;0,700;1,300;1,500;1,600;1,700&amp;display=swap" rel="stylesheet"/>
  20.         <link href="https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,400;1,400&amp;display=swap" rel="stylesheet"/>
  21.         <link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
  22.         <link
  23.         rel="stylesheet" href="https://datatables.net/extensions/tabletools/#Example">
  24.         <!-- Core theme CSS (includes Bootstrap)-->
  25.         <link href="{{ asset('css/styles.css') }}" rel="stylesheet"/>
  26.         <link href="{{ asset('css/perso.css') }}" rel="stylesheet"/>
  27.         <script src="https://cdn.jsdelivr.net/npm/chart.js@3.9.1/dist/chart.min.js"></script>
  28.         <script src="{{ asset('assets/dist/Chart.css')}}"></script>
  29.         <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation@2.0.1/dist/chartjs-plugin-annotation.min.js"></script>
  30.         <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v6.0.0-beta2/css/all.css"/> {% block stylesheets %}{% endblock %}
  31.         </head>
  32.         <body
  33.             id="page-top" class="bg-light">
  34.             <!-- Navigation-->
  35.             {% include 'header.html.twig' %}
  36.             <!-- Mashead header-->
  37.             <section class="bg-light">
  38.                 <div class="container px-12">
  39.                     {% if app.session.flashBag.has('success') %}
  40.                         <div class='alert alert-success'>{{ app.flashes('success')|join }}</div>
  41.                     {% endif %}
  42.                     {% if app.session.flashBag.has('message') %}
  43.                         <div class='alert alert-success'>{{ app.flashes('message')|join }}</div>
  44.                     {% endif %}
  45.                     {% if app.session.flashBag.has('info') %}
  46.                         <div class='alert alert-success'>{{ app.flashes('info')|join }}</div>
  47.                     {% endif %}
  48.                     {% if app.session.flashBag.has('err') %}
  49.                         <div class='alert alert-danger'>{{ app.flashes('err')|join }}</div>
  50.                     {% endif %}
  51.                     {% block body %}{% endblock %}
  52.                 </div>
  53.             </section>
  54.             <!-- Footer-->
  55.             {% include 'footer.html.twig' %}
  56.             <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  57.             <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
  58.             <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
  59.             <script src="https://cdn.datatables.net/buttons/2.4.1/js/dataTables.buttons.min.js"></script>
  60.             <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
  61.             <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
  62.             <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
  63.             <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
  64.             <script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
  65.             <script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.print.min.js"></script>
  66.             <script>
  67.                 (function () {
  68. var datatableInit = function () {
  69. $('#agents').dataTable({
  70. stateSave: true,
  71. "pagingType": "full_numbers",
  72. fixedHeader: true,
  73. fixedColumns: true,
  74. // "aaSorting": [] ,
  75. language: {
  76. "lengthMenu": "_MENU_ enregistrements par page",
  77. "search": "Rechercher",
  78. "zeroRecords": "aucun résultat",
  79. "info": "_MAX_ enregistrements",
  80. "infoEmpty": "Pas de résultats",
  81. "infoFiltered": "(filtered from _MAX_ total records)",
  82. "paginate": {
  83. "previous": "<",
  84. "first": "<<",
  85. "next": ">",
  86. "last": ">>"
  87. }
  88. },
  89. buttons: [
  90. {
  91. extend: 'excel',
  92. text: '<i class="nav-link-icon fa fa-file-excel-o"></i> Export'
  93. }
  94. ],
  95. "lengthMenu": [
  96. [
  97. 10, 25, 50, -1
  98. ],
  99. [
  100. 10, 25, 50, "Toutes"
  101. ]
  102. ],
  103. dom: '<"top"Bli>rt<"bottom"p><"clear">,',
  104. fixedHeader: {
  105. headerOffset: 50
  106. }
  107. });
  108. };
  109. $(function () {
  110. datatableInit();
  111. });
  112. }).apply(this, [jQuery]);
  113.             </script>
  114.             {% block javascripts %}{% endblock %}
  115.         </body>
  116.     </html>
  117. </head></html>