templates/sidemenu.html.twig line 1

Open in your IDE?
  1. <div class="app-sidebar__overlay" data-bs-toggle="sidebar"></div>
  2. <aside class="app-sidebar doc-sidebar">
  3.     <a class="header-brand sidemenu-header-brand" href="{{ path('home') }}">
  4.         <img src="{{ asset('assets/images/custom/logo/logo-top.png') }}" class="header-brand-img desktop-logo" alt="logo">
  5.         <img src="{{ asset('assets/images/custom/logo/logo-footer.png') }}" class="header-brand-img mobile-logo" alt="logo">
  6.     </a>
  7.     <div class="app-sidebar__user clearfix">
  8.         <div class="dropdown user-pro-body">
  9.             <div>
  10.                 <img src="{{ asset('assets/images/users/user.png') }}" alt="user-img" class="avatar avatar-lg brround">
  11.                 <span class="avatar-status {% if app.user %}profile-status bg-green{% endif %}"></span>
  12.             </div>
  13.             {% if app.user %}
  14.                 <div class="user-info">
  15.                     <h2>{{ app.user.firstName }} {{ app.user.lastName }}</h2>
  16.                     <span>
  17.                         {% if 'ROLE_SUPER_ADMIN' in app.user.roles %}
  18.                             Super Admin
  19.                         {% elseif 'ROLE_ADMIN' in app.user.roles %}
  20.                             Admin
  21.                         {% elseif 'ROLE_COMMERCIAL' in app.user.roles %}
  22.                             Commercial
  23.                         {% endif %}
  24.                     </span>
  25.                 </div>
  26.             {% else %}
  27.                 <div class="user-info">
  28.                     <h2>Non connecté</h2>
  29.                 </div>
  30.             {% endif %}
  31.         </div>
  32.     </div>
  33.     <ul class="side-menu">
  34.         {% if is_granted("ROLE_SUPER_ADMIN") or is_granted("ROLE_ADMIN") %}
  35.             <li class="slide mb-3">
  36.                 <a class="side-menu__item slide-show {% if 'trainings_edit' == app.request.get('_route') or 'trainings_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  37.                     <i class="side-menu__icon fa fa-file-word-o"></i>
  38.                     <span class="side-menu__label">Fiches formations</span>
  39.                     <i class="angle fa fa-angle-right"></i></a>
  40.                 <ul class="slide-menu">
  41.                     <li>
  42.                         <a href="{{ path('trainings_index') }}" class="slide-item">Liste des fiches</a>
  43.                     </li>
  44.                     <li>
  45.                         <a href="{{ path('trainings_new') }}" class="slide-item">Ajouter une fiche</a>
  46.                     </li>
  47.                 </ul>
  48.             </li>
  49.         {% endif %}
  50.         {% if is_granted("ROLE_SUPER_ADMIN")%}
  51.             <li class="slide mb-3">
  52.                 <a class="side-menu__item slide-show {% if 'user_edit' == app.request.get('_route') or 'user_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  53.                     <i class="side-menu__icon fa fa-user-o"></i>
  54.                     <span class="side-menu__label">Utilisateurs</span>
  55.                     <i class="angle fa fa-angle-right"></i>
  56.                 </a>
  57.                 <ul class="slide-menu">
  58.                     <li>
  59.                         <a href="{{ path('user_index') }}" class="slide-item">Liste des utilisateurs</a>
  60.                     </li>
  61.                     <li>
  62.                         <a href="{{ path('user_new') }}" class="slide-item">Ajouter un utilisateur</a>
  63.                     </li>
  64.                 </ul>
  65.             </li>
  66.             <li class="slide mb-3">
  67.                 <a class="side-menu__item slide-show {% if 'domain_edit' == app.request.get('_route') or 'domain_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  68.                     <i class="side-menu__icon fa fa-file"></i>
  69.                     <span class="side-menu__label">Domaines</span>
  70.                     <i class="angle fa fa-angle-right"></i>
  71.                 </a>
  72.                 <ul class="slide-menu">
  73.                     <li>
  74.                         <a class="slide-item" href="{{ path('domain_index') }}">Liste des domaines</a>
  75.                     </li>
  76.                     <li>
  77.                         <a class="slide-item" href="{{ path('domain_new') }}">Ajouter un domaine</a>
  78.                     </li>
  79.                 </ul>
  80.             </li>
  81.             <li class="slide mb-3">
  82.                 <a class="side-menu__item slide-show {% if 'certification_type_edit' == app.request.get('_route') or 'certification_type_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  83.                     <i class="side-menu__icon fa fa-certificate"></i>
  84.                     <span class="side-menu__label">Types de certifications</span>
  85.                     <i class="angle fa fa-angle-right"></i></a>
  86.                 <ul class="slide-menu">
  87.                     <li>
  88.                         <a class="slide-item" href="{{ path('certification_type_index') }}">Liste des types de certificiations</a>
  89.                     </li>
  90.                     <li>
  91.                         <a class="slide-item" href="{{ path('certification_type_new') }}">Ajouter un type de certificiation</a>
  92.                     </li>
  93.                 </ul>
  94.             </li>
  95.             <li class="slide mb-3">
  96.                 <a class="side-menu__item slide-show {% if 'education_level_edit' == app.request.get('_route') or 'education_level_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  97.                     <i class="side-menu__icon fa fa-level-up"></i>
  98.                     <span class="side-menu__label">Niveaux de formation</span>
  99.                     <i class="angle fa fa-angle-right"></i></a>
  100.                 <ul class="slide-menu">
  101.                     <li>
  102.                         <a class="slide-item" href="{{ path('education_level_index') }}">Liste des niveaux de formation</a>
  103.                     </li>
  104.                     <li>
  105.                         <a class="slide-item" href="{{ path('education_level_new') }}">Ajouter un niveau de formation</a>
  106.                     </li>
  107.                 </ul>
  108.             </li>
  109.             <li class="slide mb-3">
  110.                 <a class="side-menu__item slide-show {% if 'public_type_edit' == app.request.get('_route') or 'public_type_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  111.                     <i class="side-menu__icon fa fa-users"></i>
  112.                     <span class="side-menu__label">Types de public</span>
  113.                     <i class="angle fa fa-angle-right"></i></a>
  114.                 <ul class="slide-menu">
  115.                     <li>
  116.                         <a class="slide-item" href="{{ path('public_type_index') }}">Liste des types de public</a>
  117.                     </li>
  118.                     <li>
  119.                         <a class="slide-item" href="{{ path('public_type_new') }}">Ajouter un type de public</a>
  120.                     </li>
  121.                 </ul>
  122.             </li>
  123.             <li class="slide mb-3">
  124.                 <a class="side-menu__item slide-show {% if 'sub_domain_edit' == app.request.get('_route') or 'sub_domain_show' == app.request.get('_route') %}active{% endif %}"  href="javascript:void(0)">
  125.                     <i class="side-menu__icon fa fa-file-o"></i>
  126.                     <span class="side-menu__label">Sous-domaines</span>
  127.                     <i class="angle fa fa-angle-right"></i></a>
  128.                 <ul class="slide-menu">
  129.                     <li>
  130.                         <a href="{{ path('sub_domain_index') }}" class="slide-item">Listes des sous-domaines</a>
  131.                     </li>
  132.                     <li>
  133.                         <a href="{{ path('sub_domain_new') }}" class="slide-item">Ajouter un sous-domaine</a>
  134.                     </li>
  135.                 </ul>
  136.             </li>
  137.             <li class="slide mb-3">
  138.                 <a class="side-menu__item slide-show {% if 'keywords_edit' == app.request.get('_route') or 'keywords_show' == app.request.get('_route') %}active{% endif %}"  href="javascript:void(0)">
  139.                     <i class="side-menu__icon icon-key"></i>
  140.                     <span class="side-menu__label">Mots-clés</span>
  141.                     <i class="angle fa fa-angle-right"></i>
  142.                 </a>
  143.                 <ul class="slide-menu">
  144.                     <li>
  145.                         <a href="{{ path('keywords_index') }}" class="slide-item">Liste des mots-clés</a>
  146.                     </li>
  147.                     <li>
  148.                         <a href="{{ path('keywords_new') }}" class="slide-item">Ajouter un mot-clé</a>
  149.                     </li>
  150.                 </ul>
  151.             </li>
  152.             <li class="slide mb-3">
  153.                 <a class="side-menu__item slide-show {% if 'training_place_edit' == app.request.get('_route') or 'training_place_show' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  154.                     <i class="side-menu__icon fa fa-building-o"></i>
  155.                     <span class="side-menu__label">Lieux de formation</span>
  156.                     <i class="angle fa fa-angle-right"></i></a>
  157.                 <ul class="slide-menu">
  158.                     <li>
  159.                         <a href="{{ path('training_place_index') }}" class="slide-item">Liste des lieux</a>
  160.                     </li>
  161.                     <li>
  162.                         <a href="{{ path('training_place_new') }}" class="slide-item">Ajouter un lieu</a>
  163.                     </li>
  164.                 </ul>
  165.             </li>
  166.             <li class="slide mb-3">
  167.                 <a class="side-menu__item slide-show" href="javascript:void(0)">
  168.                     <i class="side-menu__icon fa fa-quote-left"></i>
  169.                     <span class="side-menu__label">Types de formation</span>
  170.                     <i class="angle fa fa-angle-right"></i>
  171.                 </a>
  172.                 <ul class="slide-menu">
  173.                     <li>
  174.                         <a class="slide-item" href="{{ path('type_index') }}">Liste des types de formation</a>
  175.                     </li>
  176.                     <li>
  177.                         <a class="slide-item" href="{{ path('type_new') }}">Ajouter un type de formation</a>
  178.                     </li>
  179.                 </ul>
  180.             </li>
  181.             <li class="slide mb-3">
  182.                 <a class="side-menu__item slide-show {% if 'device_and_training_edit' == app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  183.                     <i class="side-menu__icon fa fa-comment-o"></i>
  184.                     <span class="side-menu__label">Dispositifs de formation</span>
  185.                     <i class="angle fa fa-angle-right"></i>
  186.                 </a>
  187.                 <ul class="slide-menu">
  188.                     <li>
  189.                         <a class="slide-item" href="{{ path('device_training_index') }}">Liste des dispositifs de formation</a>
  190.                     </li>
  191.                     <li>
  192.                         <a class="slide-item" href="{{ path('device_training_new') }}">Ajouter un dispositif de formation</a>
  193.                     </li>
  194.                 </ul>
  195.             </li>
  196.         {% endif %}
  197.         {% if is_granted("ROLE_COMMERCIAL") or is_granted("ROLE_ADMIN") or is_granted ("ROLE_SUPER_ADMIN") %}
  198.             <li class="slide {% if 'select_training' == app.request.get('_route') or 'fiches' in app.request.get('_route') %}is-expanded{% endif %} mb-3">
  199.                 <a class="side-menu__item slide-show {% if 'select_training' == app.request.get('_route') or 'fiches' in app.request.get('_route') %}active{% endif %}" href="javascript:void(0)">
  200.                     <i class="side-menu__icon fa fa-euro"></i>
  201.                     <span class="side-menu__label">Outil Commercial</span>
  202.                     <i class="angle fa fa-angle-right"></i>
  203.                 </a>
  204.                 <ul class="slide-menu {% if 'select_training' == app.request.get('_route') or 'fiches' in app.request.get('_route') %}open{% endif %}">
  205.                     <li>
  206.                         <a class="slide-item" href="{{ path('fiches_index') }}">Mes propositions</a>
  207.                     </li>
  208.                     <li>
  209.                         <a class="slide-item" href="{{ path('other_fiches_index') }}">Propositions d'autres commerciaux</a>
  210.                     </li>
  211.                     <li>
  212.                         <a class="slide-item" href="{{ path('all_fiches_index') }}">Toutes les propositions</a>
  213.                     </li>
  214.                     <li>
  215.                         <a class="slide-item {% if 'select_training' == app.request.get('_route') or 'fiches_new' == app.request.get('_route') %}active{% endif %}" href="{{ path('select_training') }}">Ajouter une proposition</a>
  216.                     </li>
  217.                 </ul>
  218.             </li>
  219.         {% endif %}
  220.     </ul>
  221. </aside>