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="robots" content="noindex">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <title>{% block title %}E-digi MED{% endblock %}</title>
  8.     {% block stylesheets %}{% endblock %}
  9.     {#    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" #}
  10.     {#          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> #}
  11.     {#    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css"> #}
  12.     {#    <link rel="stylesheet" #}
  13.     {#          href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.1/css/tempusdominus-bootstrap-4.min.css"/> #}
  14.     {#    <link rel="stylesheet" type="text/css" href="{{ asset('css/app.css') }}"> #}
  15.     <link rel="icon" type="image/png" href="{{ asset('img/favicon.png') }}">
  16.     {# FONTS #}
  17.     <link href="https://fonts.googleapis.com/css?family=Comic+Neue&display=swap" rel="stylesheet">
  18.     <link href="https://fonts.googleapis.com/css?family=Cabin&display=swap" rel="stylesheet">
  19.     {{ encore_entry_link_tags('app') }}
  20. </head>
  21. <body>
  22. {% if is_granted('IS_AUTHENTICATED_FULLY') or is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  23.     <nav class="navbar navbar-expand-lg navbar-light">
  24.         <img src="{{ asset('img/logo.jpg') }}" id="logo">
  25.         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar"
  26.                 aria-expanded="false" aria-label="Toggle navigation">
  27.         <span class="navbar-icon">
  28.             <i class="navbar-burger-trait"></i>
  29.             <i class="navbar-burger-trait"></i>
  30.             <i class="navbar-burger-trait"></i>
  31.         </span>
  32.             <span id="span_notification_menu_burger" class="badge badge-pill badge-primary invisible">&nbsp;</span>
  33.         </button>
  34.         <div class="collapse navbar-collapse" id="navbar">
  35.             <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
  36.                 {% if is_granted('ROLE_PROFESSIONAL') %}
  37.                     <li class="nav-item {% if current_menu is defined and current_menu == 'calendar' %}active{% endif %}">
  38.                         <a class="nav-link" href="{{ path('home_calendar') }}">TournĂ©e</a>
  39.                     </li>
  40.                     <li class="nav-item {% if current_menu is defined and current_menu == 'office' %}active{% endif %}">
  41.                         <a class="nav-link" href="{{ path('office_index') }}">Gestion Cabinet</a>
  42.                     </li>
  43.                     <li class="nav-item {% if current_menu is defined and current_menu == 'prescription_book' %}active{% endif %}">
  44.                         <a class="nav-link" href="{{ path('prescription_book_index') }}">Ordonnancier</a>
  45.                     </li>
  46.                     <li class="nav-item {% if current_menu is defined and current_menu == 'patient' %}active{% endif %}">
  47.                         <a class="nav-link" href="{{ path('patient_index') }}">Gestion Patient</a>
  48.                     </li>
  49.                     <li class="nav-item {% if current_menu is defined and current_menu == 'archive' %}active{% endif %}">
  50.                         <a class="nav-link" href="{{ path('archive_index') }}">Archive</a>
  51.                     </li>
  52.                     <li class="nav-item {% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
  53.                         <a class="nav-link" href="{{ path('notification_index') }}">Notifications <span
  54.                                     class="badge badge-pill badge-primary invisible span_notification_menu">&nbsp;</span></a>
  55.                     </li>
  56.                 {% elseif is_granted('ROLE_PATIENT') %}
  57.                     <li class="nav-item {% if current_menu is defined and current_menu == 'calendar_patient' %}active{% endif %}">
  58.                         <a class="nav-link" href="{{ path('calendar_patient_get') }}">Calendrier</a>
  59.                     </li>
  60.                     <li class="nav-item {% if current_menu is defined and current_menu == 'message' %}active{% endif %}">
  61.                         <a class="nav-link" href="{{ path('index_message_patient') }}">Echanger avec l'infirmier<span
  62.                                     class="badge badge-pill badge-primary invisible span_notification_menu">&nbsp;</span></a>
  63.                     </li>
  64.                     <li class="nav-item {% if current_menu is defined and current_menu == 'patient_paper' %}active{% endif %}">
  65.                         <a class="nav-link" href="{{ path('paper_patient_index_patient') }}">Mes documents</a>
  66.                     </li>
  67.                     <li class="nav-item {% if current_menu is defined and current_menu == 'intervention_history' %}active{% endif %}">
  68.                         <a class="nav-link" href="{{ path('intervention_history_index') }}">Historique</a>
  69.                     </li>
  70.                 {% elseif is_granted('ROLE_FACTURIER') %}
  71.                     <li class="nav-item {% if current_menu is defined and current_menu == 'facturier_professional' %}active{% endif %}">
  72.                         <a class="nav-link" href="{{ path('facturier_index') }}">Gestion Infirmier</a>
  73.                     </li>
  74.                     <li class="nav-item {% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
  75.                         <a class="nav-link" href="{{ path('notification_index') }}">Notifications <span
  76.                                     class="badge badge-pill badge-primary invisible span_notification_menu">&nbsp;</span></a>
  77.                     </li>
  78.                 {% endif %}
  79.                 <li class="nav-item">
  80.                     <a class="nav-link {% if current_menu is defined and current_menu == 'profil' %}active{% endif %}"
  81.                        href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
  82.                 </li>
  83.             </ul>
  84.         </div>
  85.     </nav>
  86.     {% if is_granted('ROLE_PROFESSIONAL') %}
  87.         <div class="mobile-navbar">
  88.             <ul>
  89.                 <li class="{% if current_menu is defined and current_menu == 'calendar' %}active{% endif %}">
  90.                     <a href="{{ path('home_calendar') }}"><i class="fa fa-calendar"></i></a>
  91.                 </li>
  92.                 <li class="{% if current_menu is defined and current_menu == 'office' %}active{% endif %}">
  93.                     <a href="{{ path('office_index') }}"><i class="fa fa-clinic-medical"></i></a>
  94.                 </li>
  95.                 <li class="{% if current_menu is defined and current_menu == 'prescription_book' %}active{% endif %}">
  96.                     <a href="{{ path('prescription_book_index') }}"><i class="fa fa-file-signature"></i></a>
  97.                 </li>
  98.                 <li class="{% if current_menu is defined and current_menu == 'patient' %}active{% endif %}">
  99.                     <a href="{{ path('patient_index') }}"><i class="fa fa-address-book"></i></a>
  100.                 </li>
  101.                 <li class="{% if current_menu is defined and current_menu == 'archive' %}active{% endif %}">
  102.                     <a href="{{ path('archive_index') }}"><i class="fa fa-archive"></i></a>
  103.                 </li>
  104.                 <li class="{% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
  105.                     <a href="{{ path('notification_index') }}"><i class="fa fa-bell notification"></i>
  106.                         {#                    <span class="badge badge-pill badge-primary invisible span_notification_menu">&nbsp;</span> #}
  107.                     </a>
  108.                 </li>
  109.                 <li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
  110.                     <a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
  111.                 </li>
  112.             </ul>
  113.         </div>
  114.     {% elseif is_granted('ROLE_PATIENT') %}
  115.         <div class="mobile-navbar">
  116.             <ul>
  117.                 <li class="{% if current_menu is defined and current_menu == 'calendar_patient' %}active{% endif %}">
  118.                     <a href="{{ path('calendar_patient_get') }}"><i class="fa fa-calendar"></i></a>
  119.                 </li>
  120.                 <li class="{% if current_menu is defined and current_menu == 'message' %}active{% endif %}">
  121.                     <a href="{{ path('index_message_patient') }}">
  122.                         <i class="fa fa-envelope notification"></i>
  123.                         {#                        <span id="span_notification_menu" class="badge badge-pill badge-primary invisible">&nbsp;</span> #}
  124.                     </a>
  125.                 </li>
  126.                 <li class="{% if current_menu is defined and current_menu == 'patient_paper' %}active{% endif %}">
  127.                     <a href="{{ path('paper_patient_index_patient') }}"><i class="fa fa-paste"></i></a>
  128.                 </li>
  129.                 <li class="{% if current_menu is defined and current_menu == 'intervention_history' %}active{% endif %}">
  130.                     <a href="{{ path('intervention_history_index') }}"><i class="fa fa-archive"></i></a>
  131.                 </li>
  132.                 <li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
  133.                     <a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
  134.                 </li>
  135.             </ul>
  136.         </div>
  137.     {% elseif is_granted('ROLE_FACTURIER') %}
  138.         <div class="mobile-navbar">
  139.             <ul>
  140.                 <li class="{% if current_menu is defined and current_menu == 'facturier_professional' %}active{% endif %}">
  141.                     <a href="{{ path('facturier_index') }}"><i class="fa fa-address-book"></i></a>
  142.                 </li>
  143.                 <li class="{% if current_menu is defined and current_menu == 'notification' %}active{% endif %}">
  144.                     <a href="{{ path('notification_index') }}"><i class="fa fa-bell notification"></i>
  145.                         {#                    <span class="badge badge-pill badge-primary invisible span_notification_menu">&nbsp;</span> #}
  146.                     </a>
  147.                 </li>
  148.                 <li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
  149.                     <a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
  150.                 </li>
  151.             </ul>
  152.         </div>
  153.     {% else %}
  154.         <div class="mobile-navbar">
  155.             <ul>
  156.                 <li class="{% if current_menu is defined and current_menu == 'profil' %}active{% endif %}">
  157.                     <a href="{{ path('profil') }}"><i class="fa fa-user"></i></a>
  158.                 </li>
  159.             </ul>
  160.         </div>
  161.     {% endif %}
  162. {% endif %}
  163. <div class="container">
  164.     {% for label, messages in app.flashes %}
  165.         {% for message in messages %}
  166.             <div class="mt-5 alert alert-{{ label }}">
  167.                 {{ message }}
  168.             </div>
  169.         {% endfor %}
  170.     {% endfor %}
  171.     {% block body %}{% endblock %}
  172. </div>
  173. <div class="container-fluid">
  174.     {% block calendar %}{% endblock %}
  175. </div>
  176. {% if is_granted('ROLE_PROFESSIONAL') %}
  177.     <div id="div_sos">
  178.         <button class="btn btn-danger" id="btn_sos">SOS</button>
  179.     </div>
  180. {% endif %}
  181. <footer>
  182.     <hr style="background-color:#E5361E">
  183.     <hr style="background-color:#F59E17">
  184.     <hr style="background-color:#FFEE0F">
  185.     <hr style="background-color:#00A339">
  186.     <hr style="background-color:#26B7EB">
  187.     <hr style="background-color:#562678">
  188.     <hr style="background-color:#C80975">
  189. </footer>
  190. {{ encore_entry_script_tags('app') }}
  191. {% block javascripts %}
  192. {% endblock %}
  193. </body>
  194. </html>