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 %}Welcome!{% endblock %}</title>
  6.         {% block stylesheets %}
  7.            {{ encore_entry_link_tags('theme') }}
  8.         {% endblock %}
  9.     </head>
  10.     <body data-spy="scroll" data-target="#v-pills-tab">
  11.         {% if is_granted('ROLE_CLIENT') %}
  12.             {% block header %}
  13.             <header>
  14.                 <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
  15.                     <div class="container">
  16.                      <img src="{{ asset('firplast-logo.svg') }}" class="img-thumbnail float-left" alt="Logo Firplast">
  17.                      {% if is_granted('ROLE_COMMERCIAL') or is_granted('ROLE_ACCOUNTANT') %}
  18.                         <ul class="navbar-nav mr-auto">
  19.                             <li class="nav-item">
  20.                                 <a class="nav-link" href="{{ path('company_index') }}">
  21.                                     Sociétés
  22.                                 </a>
  23.                             </li>
  24.                              {% if is_granted('ROLE_ADMIN') %}
  25.                                 <li class="nav-item">
  26.                                     <a class="nav-link" href="{{ path('user_index') }}">
  27.                                         Utilisateurs
  28.                                     </a>
  29.                                 </li>
  30.                                 <li class="nav-item">
  31.                                     <a class="nav-link" href="{{ path('setting') }}">
  32.                                         Paramètres
  33.                                     </a>
  34.                                 </li>
  35.                             {% endif %}
  36.                             </ul>
  37.                         {% endif %}
  38.                             <div>
  39.                                 <a class="btn btn-secondary" href="{{ path('app_logout') }}">
  40.                                     <i class="fa fa-unlock"></i> Déconnexion
  41.                                 </a>
  42.                             </div>
  43.                         </div>
  44.                     </nav>
  45.                 </header>
  46.             {% endblock %}
  47.         {% endif %}
  48.         {% block main %}
  49.         <main role="main">
  50.             <div class="container">
  51.                 {% for message in app.flashes('success') %}
  52.                     <div class="alert alert-success alert-dismissible fade show" role="alert">
  53.                     {{ message }}
  54.                         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  55.                             <span aria-hidden="true">&times;</span>
  56.                         </button>
  57.                     </div>
  58.                 {% endfor %}
  59.                 {% for message in app.flashes('warning') %}
  60.                     <div class="alert alert-warning alert-dismissible fade show" role="alert">
  61.                     {{ message }}
  62.                         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  63.                             <span aria-hidden="true">&times;</span>
  64.                         </button>
  65.                     </div>
  66.                 {% endfor %}
  67.                 
  68.                 {% block nav %}{% endblock %}
  69.                 {% block body %}{% endblock %}
  70.             </div>
  71.         </main>
  72.         {% endblock %}
  73.         <footer>
  74.             <div class="container text-center">
  75.                 Copyright 2020 | <a href="https://www.greentic.net" target="_blank">Développement Greentic.net</a>
  76.             </div>
  77.         </footer>
  78.         <div role="alert" aria-live="assertive" aria-atomic="true" class="toast" data-delay="2000" data-autohide="true">
  79.             <div class="toast-header">
  80.                 <strong class="mr-auto">Notification</strong>
  81.                 <button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
  82.                     <span aria-hidden="true">×</span>
  83.                 </button>
  84.             </div>
  85.             <div class="toast-body"></div>
  86.         </div>
  87.         {% block javascripts %}{{ encore_entry_script_tags('script') }}{% endblock %}
  88.     </body>
  89. </html>