templates/front/base.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" content="width=device-width, initial-scale=1.0">
  6.         <!-- titre -->
  7.         <title>{{ page.titre }}</title>
  8.         <!-- description -->
  9.         <meta content="{{ page.description }}" name="description">
  10.         <!-- template headHtml -->
  11.         {{ page.template.headHtml|raw }}
  12.         {% block stylesheets %}{% endblock %}
  13.     </head>
  14.     {% if page.etat == 3 %}
  15.         <body style="border: 3px solid red; min-height: 100%;">
  16.     {% else %}
  17.         <!--
  18.             <body class="bd-example m-0 border-0 bd-example-row bd-example-row-flex-cols">
  19.         -->
  20.         <body class="">
  21.     {% endif %}
  22.         {% set trans_day_hash = { 
  23.                 "Monday": "Lundi : 8h - 16h30", 
  24.                 "Tuesday": "Mardi : 8h - 16h30", 
  25.                 "Wednesday": "Mercredi : 8h - 18h", 
  26.                 "Thursday": "Jeudi : 8h - 16h30", 
  27.                 "Friday": "Vendredi : 8h - 16h30", 
  28.                 "Saturday": "Samedi : fermé", 
  29.                 "Sunday": "Dimanche : fermé" 
  30.             } 
  31.         %}
  32.         {% block body %}{% endblock %}
  33.         <!-- script jsHtml -->
  34.         {{ page.template.jsHtml|raw }}
  35.         {% block javascripts %}
  36.         {% endblock %}
  37.         {% if user.roles[0] is defined and user.roles[0] == "ROLE_ADMIN" %}
  38.             {% include "front/js/elements.js" %} 
  39.             {% include "front/js/gestionElements.js" %} 
  40.         {% else %}
  41.             <script type="text/javascript">
  42.                 $(function(){
  43.                     $('.sf-toolbar').css("opacity", "0");
  44.                 });
  45.             </script>
  46.         {% endif %}
  47.     </body>
  48. </html>