templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}ARS : G.P.P. {% endblock %}</title>
  6.         {% block stylesheets %}
  7.             {{ encore_entry_link_tags('app') }}
  8.         {% endblock %}
  9.     </head>
  10.     <body>
  11.     <style>
  12.     @media only screen and (max-width: 760px){
  13.         #d-body {
  14.             display: none;
  15.         }
  16.         #d-smartphone{
  17.             display:inline-block !important;
  18.         }
  19.     }
  20.     </style>
  21.         {% include 'Default/header.html.twig' %}
  22.         {% include 'Default/offcanvas.html.twig' %}
  23.     <main class="container-fluid " style="margin-top:120px">
  24.         <div class="m-auto w-75 bg-dark">
  25.         <div class="toast-container position-fixed top-4 end-0 p-3">
  26.                 {% for label, messages in app.flashes %}
  27.                     {% for message in messages %}
  28.                         <div class="toast align-items-center toast-{{ label }} border-0 mb-2" role="alert" aria-live="assertive" aria-atomic="true">
  29.                             <div class="d-flex">
  30.                                 <div class="toast-body">{{message}}</div>
  31.                                 <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
  32.                             </div>
  33.                         </div>
  34.                     {% endfor %}
  35.                 {% endfor %}
  36.             </div>
  37.         </div>
  38. {#        <div class="w-100 m-auto d-none text-center" id="d-smartphone">#}
  39. {#            <h1>L'application n'est pas adaptée aux smartphones.</h1>#}
  40. {#        </div>#}
  41.         <div class="w-100 m-auto" id="d-body">
  42.             {% block body %} {% endblock %}
  43.         </div>
  44.     </main>
  45.     <script>
  46.         if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) )
  47.         {
  48.             // document.getElementById('d-body').classList.add('d-none');
  49.             // document.getElementById('d-smartphone').classList.remove('d-none');
  50.             document.location = "/app/mobile";
  51.         }
  52.     </script>
  53.         {% block javascripts %}{{ encore_entry_script_tags('app') }}{% endblock %}
  54.     </body>
  55. </html>