templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="UTF-8">
  5.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.   <title>{% block title %}CEP-I{% endblock %}</title>
  7.   {% block stylesheets %}{% endblock %}
  8.   <meta name="google-site-verification" content="ZrIRN5yWWqm7sdeDFocXKaYZ3aG6GoeVKGQ8_OeRoQE" />
  9.   <!-- Global site tag (gtag.js) - Google Analytics -->
  10.   <script async src="https://www.googletagmanager.com/gtag/js?id=UA-140409788-1"></script>
  11.   <script src="/assets/js/jquery-3.1.1.min.js"></script>
  12.   {% block head_meta%}
  13.   
  14.   {% endblock %}
  15. </head>
  16. <body>
  17. {% if is_granted('ROLE_FORMATEUR') %}
  18.   <div class="superadmin_switch" style="bottom : 60px" >
  19.     <a target="_blank" href="{{ path('admin_home') }}">Panneau d'admin</a>
  20.   </div>
  21. {% endif %}
  22. {% if is_granted('ROLE_ALLOWED_TO_SWITCH') %}
  23.   <div class="superadmin_switch" >
  24.     <a href="{{ path('admin_utilisateur', {'pagePrecedente' : app.request.attributes.get('_route') ? path(app.request.attributes.get('_route'),
  25.       app.request.attributes.get('_route_params')) : '/' }) }}">Changer d'utilisateur</a>
  26.   </div>
  27. {% endif %}
  28. {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  29.   <div class="superadmin_switch" >
  30.     <a href="?_switch_user=_exit">Revenir en mode Admin</a>
  31.     <a href="{{ path('admin_utilisateur', {'_switch_user': '_exit', 'pagePrecedente' : app.request.attributes.get('_route') ? path(app.request.attributes.get('_route'),
  32.       app.request.attributes.get('_route_params')) : '/' }) }}">Changer d'utilisateur ({{ app.user.prenom }} {{ app.user.nom }})</a>
  33.   </div>
  34. {% endif %}
  35. <div class="wrapper">
  36. {% block header %}
  37.     {% include '__includes__/header.html.twig' %}
  38. {% endblock %}
  39. {% block breadcrumps %}
  40.     {% include '__includes__/breadcrumps.html.twig' %}
  41. {% endblock %}
  42. {% block body %}{% endblock %}
  43. {% block footer %}
  44.     {% include '__includes__/footer.html.twig' %}
  45. {% endblock %}
  46. </div>
  47. {% block javascripts %}{% endblock %}
  48. </body>
  49. </html>