templates/_widget-menu.html.twig line 1

Open in your IDE?
  1. {% if app.user %}
  2.     {% if (connectedCustomer.get().getCliReference() is not null) and (connectedCustomer.getAccountInfo().getIsSetupNeeded != 1) %}
  3.         <div id="menu-bar" class="col col-xl-12 col-sm-12">
  4.             <nav class="navbar navbar-expand-lg navbar-light bg-light">
  5.                 <a class="navbar-brand" href="#">Menu</a>
  6.                 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  7.                     <span class="navbar-toggler-icon"></span>
  8.                 </button>
  9.                 <div class="collapse navbar-collapse" id="navbarSupportedContent">
  10.                     <ul id="menu-navigation">
  11.                         <li class="{% if menu == 'dashboard' %}trail{% endif %}">
  12.                             <a href="{{ path('dashboard') }}">Tableau de bord</a>
  13.                         </li>
  14.                         <li class="{% if menu == 'services-invoices' %}trail{% endif %}">
  15.                             <a class="" href="{{ path('services-invoices') }}">Mes factures</a>
  16.                         </li>
  17.                         <li class="submenu {% if (menu == 'customer-installations') or (menu == 'services-water-consommation-meter') %}trail{% endif %}">
  18.                             <a class="no-target" href="#">Ma consommation</a>
  19.                             <ul>
  20.                                 {% if (connectedCustomer.nbfindMetersInfo() > 1) %}
  21.                                     <li class="{% if menu == 'customer-installations' %}selected{% endif %}">
  22.                                         <a href="{{ path('customer-installations-list') }}">Mes installations / Informations générales</a>
  23.                                     </li>
  24.                                 {% else %}
  25.                                     <li class="{% if menu == 'customer-installations' %}selected{% endif %}">
  26.                                         <a href="{{ path('customer-installations') }}">Mon installation / Informations générales</a>
  27.                                     </li>
  28.                                 {% endif %}
  29.                                 <li class="{% if menu == 'services-water-consommation-meter' %}selected{% endif %}">
  30.                                     <a href="{{ path('services-water-consommation-meter') }}">Mon relevé de compteur</a>
  31.                                 </li>
  32.                                 <li class="{% if menu == 'services-degrevement' %}selected{% endif %}">
  33.                                     <a href="{{ path('services-degrevement') }}">Dégrèvement</a>
  34.                                 </li>
  35.                             </ul>
  36.                         </li>
  37.                         <li class="submenu {% if (menu == 'customer-profile') or (menu == 'services-bank-details')
  38.                             or (menu == 'account-setup-password') or (menu == 'services-situation-change') %}trail{% endif %}">
  39.                             <a class="no-target" href="#">Mon compte</a>
  40.                             <ul>
  41.                                 <li class="{% if menu == 'customer-profile' %}selected{% endif %}">
  42.                                     <a href="{{ path('customer-profile') }}">Mes coordonnées</a>
  43.                                 </li>
  44.                                 <li class="{% if menu == 'services-bank-details' %}selected{% endif %}">
  45.                                     <a href="{{ path('services-bank-details') }}">Mes coordonnées bancaires</a>
  46.                                 </li>
  47.                                 <li class="{% if menu == 'account-setup-password' %}selected{% endif %}">
  48.                                     <a href="{{ path('account-setup-password') }}">Mon mot de passe</a>
  49.                                 </li>
  50.                                 <li class="{% if menu == 'services-situation-change' %}selected{% endif %}">
  51.                                     <a href="{{ path('services-situation-change') }}">Changement de situation</a>
  52.                                 </li>
  53.                             </ul>
  54.                         </li>
  55.                         <li class="{% if menu == 'faq' %}trail{% endif %}">
  56.                             <a href="{{ path('faq') }}">Questions fréquentes</a>
  57.                         </li>
  58.                     </ul>
  59.                 </div>
  60.             </nav>
  61.         </div>
  62.     {% endif %}
  63. {% endif %}