templates/sidebar.html.twig line 1

Open in your IDE?
  1. <div class="navbar-content">
  2.     <!-- start: SIDEBAR -->
  3.     <div class="main-navigation navbar-collapse collapse">
  4.         <!-- start: MAIN MENU TOGGLER BUTTON -->
  5.         {#<div class="navigation-toggler">#}
  6.             {#<i class="clip-chevron-left"></i>#}
  7.             {#<i class="clip-chevron-right"></i>#}
  8.         {#</div>#}
  9.         <!-- end: MAIN MENU TOGGLER BUTTON -->
  10.         <!-- start: MAIN NAVIGATION MENU -->
  11.         <ul class="main-navigation-menu">
  12.             <li class="{% if  app.request.attributes.get('_route') == 'homepage'%}active open{% endif %}">
  13.                 <!--active open-->
  14.                 <a href="{{ path('homepage') }}">
  15.                     <i class="clip-home-3"></i>
  16.                     <span class="title"> Accueil </span>
  17.                 </a>
  18.             </li>
  19.             <!-- administration -->
  20.             {% if is_granted('ROLE_ADMIN') %}
  21.                 <li class="{% if  app.request.attributes.get('_route') in ['company_index', 'user_index','app_parameter_index']  %}open{% endif %}">
  22.                     <a href="javascript:void(0)">
  23.                         <i class="clip-screen"></i>
  24.                         <span class="title"> Administration </span>
  25.                     </a>
  26.                     <ul class="sub-menu" style="{% if  app.request.attributes.get('_route') in ['company_index', 'user_index','app_parameter_index']  %}display:block{% endif %}">
  27.                         <li class="{% if  app.request.attributes.get('_route') in ['company_index']  %}open{% endif %}">
  28.                             <a href="{{ path('company_index') }}">
  29.                                 <span class="title">Sociétés </span>
  30.                             </a>
  31.                         </li>
  32.                         <li class="{% if  app.request.attributes.get('_route') in ['user_index']  %}open{% endif %}">
  33.                             <a href="{{ path('user_index') }}" class="close-sidebar-left">
  34.                                 <span class="title">Habilitations </span>
  35.                             </a>
  36.                         </li>
  37.                         <li class="{% if  app.request.attributes.get('_route') in ['app_parameter_index']  %}open{% endif %}">
  38.                             <a href="{{ path('app_parameter_index') }}" class="set-boxed-layout">
  39.                                 <span class="title"> Paramètres </span>
  40.                             </a>
  41.                         </li>
  42.                     </ul>
  43.                 </li>
  44.             {% endif %}
  45.             <!-- Donnéeqs -->
  46.             <li class="{% if 'site_' in  app.request.attributes.get('_route')
  47.                 or 'salon_' in  app.request.attributes.get('_route')
  48.                 or 'client_' in  app.request.attributes.get('_route')
  49.                 or 'product_' in  app.request.attributes.get('_route')
  50.                 or (
  51.                     'intervenant_' in  app.request.attributes.get('_route') and  'app_planning_intervenant' != app.request.attributes.get('_route')
  52.                 )
  53.             %}open
  54. {% endif %}
  55. ">
  56.                 <a href="javascript:void(0)">
  57.                     <i class="clip-screen"></i>
  58.                     <span class="title"> Données </span>
  59.                     <span class="selected"></span>
  60.                 </a>
  61.                 <ul class="sub-menu"
  62.                     style="{% if 'site_' in  app.request.attributes.get('_route')
  63.                     or 'salon_' in app.request.attributes.get('_route')
  64.                     or 'client_' in  app.request.attributes.get('_route')
  65.                     or 'product_' in  app.request.attributes.get('_route')
  66.                     or 'intervenant' in  app.request.attributes.get('_route')%}display:block
  67.                     {% endif %}
  68.                             ">
  69.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE')  %}
  70.                     <li class="{% if 'site_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  71.                         <a href="javascript:void(0)">
  72.                             <span class="title">Sites </span>
  73.                         </a>
  74.                         <ul class="sub-menu" style="{% if 'site_' in  app.request.attributes.get('_route')%}display:block{% endif %}">
  75.                             <li class="active">
  76.                                 <a href="{{ path('site_index') }}">
  77.                                     Consultation
  78.                                 </a>
  79.                             </li>
  80.                             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_ADMINISTRATIVE')  %}
  81.                                 <li>
  82.                                     <a href="{{ path('site_new') }}">
  83.                                         Nouveau
  84.                                     </a>
  85.                                 </li>
  86.                             {% endif %}
  87.                         </ul>
  88.                     </li>
  89.                     {% endif %}
  90.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE')  or is_granted('ROLE_COIFFEUR') %}
  91.                         <li class="{% if 'salon_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  92.                             <a href="#" class="close-sidebar-left">
  93.                                 <span class="title">Salons </span>
  94.                             </a>
  95.                             <ul class="sub-menu" style="{% if 'salon_' in  app.request.attributes.get('_route')%}display:block{% endif %}">
  96.                                 <li>
  97.                                     <a href="{{ path('salon_index') }}">
  98.                                         Consultation
  99.                                     </a>
  100.                                 </li>
  101.                                 {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_ADMINISTRATIVE') %}
  102.                                     <li>
  103.                                         <a href="{{ path('salon_new') }}">
  104.                                             Nouveau
  105.                                         </a>
  106.                                     </li>
  107.                                 {% endif %}
  108.                             </ul>
  109.                         </li>
  110.                     {% endif %}
  111.                     <!-- clients -->
  112.                     <li class="{% if 'client_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  113.                         <a href="#" class="set-boxed-layout">
  114.                             <span class="title"> Clients </span>
  115.                         </a>
  116.                         <ul class="sub-menu">
  117.                             <li>
  118.                                 <a href="{{ path('client_index') }}">
  119.                                     Consultation
  120.                                 </a>
  121.                             </li>
  122.                             <li>
  123.                                 <a href="{{ path('client_new') }}">
  124.                                     Nouveau
  125.                                 </a>
  126.                             </li>
  127.                             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  128.                                 <li>
  129.                                     <a href="{{ path('client_import') }}">
  130.                                         Importation
  131.                                     </a>
  132.                                 </li>
  133.                                 <li>
  134.                                     <a href="{{ path('client_importContract') }}">
  135.                                         Importation Contract
  136.                                     </a>
  137.                                 </li>
  138.                             {% endif %}
  139.                         </ul>
  140.                     </li>
  141.                     <!-- intervenants -->
  142.                     <li class="{% if 'client_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  143.                         <a href="{{ path('site_annuaire') }}" class="set-boxed-layout">
  144.                             <span class="title"> Annuaire site </span>
  145.                         </a>
  146.                     </li>
  147.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  148.                     <li class="{% if 'intervenant_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  149.                         <a href="#" class="set-boxed-layout">
  150.                             <span class="title"> Intervenants </span>
  151.                         </a>
  152.                         <ul class="sub-menu" style="{% if 'intervenant_' in  app.request.attributes.get('_route')%}display:block{% endif %}">
  153.                             <li>
  154.                                 <a href="{{ path('intervenant_index') }}">
  155.                                     Consultation
  156.                                 </a>
  157.                             </li>
  158.                             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_ADMINISTRATIVE') %}
  159.                             <li>
  160.                                 <a href="{{ path('intervenant_new') }}">
  161.                                     Nouveau
  162.                                 </a>
  163.                             </li>
  164.                             {% endif %}
  165.                         </ul>
  166.                     </li>
  167.                     {% endif %}
  168.                     <!-- produits -->
  169.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') or is_granted('ROLE_COIFFEUR') %}
  170.                         <li  class="{% if 'product_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  171.                             <a href="#" class="set-boxed-layout">
  172.                                 <span class="title"> Produits </span>
  173.                             </a>
  174.                             <ul class="sub-menu" style="{% if 'product_' in  app.request.attributes.get('_route')%}display:block{% endif %}">
  175.                                 <li>
  176.                                     <a href="{{ path('product_index') }}">
  177.                                         Consultation
  178.                                     </a>
  179.                                 </li>
  180.                                 {% if is_granted('ROLE_ADMIN')or is_granted('ROLE_ADMINISTRATIVE') %}
  181.                                 <li>
  182.                                     <a href="{{ path('product_new') }}">
  183.                                         Nouveau
  184.                                     </a>
  185.                                 </li>
  186.                                 <li>
  187.                                     <a href="{{ path('product_famille') }}">
  188.                                         Famille de produits
  189.                                     </a>
  190.                                 </li>
  191.                                 <li>
  192.                                     <a href="{{ path('product_import') }}">
  193.                                         Import
  194.                                     </a>
  195.                                 </li>
  196.                                 {% endif %}
  197.                             </ul>
  198.                         </li>
  199.                     {% endif %}
  200.                     <li>
  201.                         <a href="{{ path('app_promo_code') }}">
  202.                             Code promo
  203.                         </a>
  204.                     </li>
  205.                 </ul>
  206.             </li>
  207.             <!-- planning -->
  208.             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') or is_granted('ROLE_COIFFEUR') or is_granted('ROLE_TELECONSEILER') %}
  209.                 <li class="{% if 'planning_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  210.                     <a href="javascript:void(0)">
  211.                         <i class="clip-screen"></i>
  212.                         <span class="title"> Planning </span>
  213.                         <span class="selected"></span>
  214.                     </a>
  215.                     <ul class="sub-menu" style="{% if 'planning_' in  app.request.attributes.get('_route')%}display:block{% endif %}">
  216.                         <li>
  217. {#                            <a href="{{ path('app_planning_site') }}"  class="{% if 'app_planning_site' == app.request.attributes.get('_route') %}open{% endif %}">#}
  218. {#                                <span class="title">Planning Clients </span>#}
  219. {#                            </a>#}
  220.                             {#<ul class="sub-menu" style="{% if 'planning_' in  app.request.attributes.get('_route')%}display:block{% endif %}">#}
  221.                                 {#<li>#}
  222.                                     {#<a href="{{ path('app_planning_site') }}" class="{% if 'app_planning_site' == app.request.attributes.get('_route') %}open{% endif %}">#}
  223.                                         {#Par site#}
  224.                                     {#</a>#}
  225.                                 {#</li>#}
  226.                                 {#<li>#}
  227.                                     {#<a href="{{ path('app_planning_site') }}" class="{% if 'app_planning_intervenant' == app.request.attributes.get('_route') %}open{% endif %}">#}
  228.                                         {#Par intervenant#}
  229.                                     {#</a>#}
  230.                                 {#</li>#}
  231.                             {#</ul>#}
  232.                         </li>
  233.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  234.                             <li>
  235.                                 <a href="{{ path('app_planning_liste') }}" class="{% if 'app_planning_liste' == app.request.attributes.get('_route') %}open{% endif %}">
  236.                                     Gestion Fiches RDV BO
  237.                                 </a>
  238.                             </li>
  239.                         {% endif %}
  240.                         <li>
  241.                             <a href="{{ path('app_planning_coiffeurliste') }}" class="{% if 'app_planning_coiffeurliste' == app.request.attributes.get('_route') %}open{% endif %}">
  242.                                 Gestion Fiches RDV
  243.                             </a>
  244.                         </li>
  245.                         <li>
  246.                             <a href="{{ path('app_planning_pilotage') }}"  class="{% if 'app_planning_pilotage' == app.request.attributes.get('_route') %}open{% endif %}">
  247.                                 <span class="title">Planning d'exploitation </span>
  248.                             </a>
  249.                         </li>
  250.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE')  %}
  251.                             <li>
  252.                                 <a href="{{ path('app_planning_liste_bo') }}" class="{% if 'app_planning_liste_bo' == app.request.attributes.get('_route') %}open{% endif %}">
  253.                                     Planning d'exploitation BO
  254.                                 </a>
  255.                             </li>
  256.                         {% endif %}
  257.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  258.                             <li>
  259.                                 <a href="{{ path('app_planning_calendrier') }}" class="{% if 'app_planning_calendrier' == app.request.attributes.get('_route') %}open{% endif %}">
  260.                                     Calendrier exploitation
  261.                                 </a>
  262.                             </li>
  263.                         {% endif %}
  264.                     </ul>
  265.                 </li>
  266.             {% endif %}
  267.             <!-- exploitation -->
  268.             <li class="{% if 'billing_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  269.                 <a href="javascript:void(0)">
  270.                     <i class="clip-screen"></i>
  271.                     <span class="title"> Exploitation </span>
  272.                     <span class="selected"></span>
  273.                 </a>
  274.                 <ul class="sub-menu" style="{% if 'billing_' in  app.request.attributes.get('_route') or 'reglement_' in  app.request.attributes.get('_route') %}display:block{% endif %}">
  275.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  276.                         <li>
  277.                             <a href="{{ path('app_billing_index') }}"  class="{% if 'app_billing_index' == app.request.attributes.get('_route') %}open{% endif %}">
  278.                                 <span class="title">Gestion des factures </span>
  279.                             </a>
  280.                         </li>
  281.                     {% endif %}
  282.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE')  %}
  283.                     <li>
  284.                         <a href="{{ path('app_reglement_index') }}"  class="{% if 'app_reglement_index' == app.request.attributes.get('_route') %}open{% endif %}">
  285.                             <span class="title">Gestion des règlements </span>
  286.                         </a>
  287.                     </li>
  288.                     {% endif %}
  289.                     <li>
  290.                         <a href="#" class="set-boxed-layout">
  291.                             <span class="title"> RH </span>
  292.                         </a>
  293.                         <ul class="sub-menu">
  294.                             {% if is_granted('ROLE_ADMIN')or is_granted('ROLE_ADMINISTRATIVE') %}
  295.                                 <li>
  296.                                     <a href="{{ path('app_exploitation_index') }}">
  297.                                         <span class="title">Gestion RH </span>
  298.                                     </a>
  299.                                 </li>
  300.                             {% endif %}
  301.                             <li>
  302.                                 <a href="https://rh.silae.fr/login" target="_blank">
  303.                                     <span class="title">Silae RH</span>
  304.                                 </a>
  305.                             </li>
  306.                             <li>
  307.                                 <a href="https://docs.google.com/spreadsheets/d/1aLxRc0F8C_crhn66XzZH71XzFY47gYI3Ix-WUGcfGDA/edit#gid=0" target="_blank">
  308.                                     <span class="title">Note de frais KM</span>
  309.                                 </a>
  310.                             </li>
  311.                         </ul>
  312.                     </li>
  313.                     <li>
  314.                         <a href="https://docs.google.com/spreadsheets/d/1Pk8zZRUvXVMugh_BAdZVgcn-PIal-3-17GE7Kug4iQQ/edit#gid=0" target="_blank">
  315.                             <span class="title">Stocks </span>
  316.                         </a>
  317.                     </li>
  318.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_ADMINISTRATIVE') or is_granted('ROLE_BO') %}
  319.                     <li>
  320.                         <a href="{{ path('app_reporting_index') }}">
  321.                             <span class="title">Reportings</span>
  322.                         </a>
  323.                     </li>
  324.                     {% endif %}
  325.                     {% if is_granted('ROLE_ADMIN') %}
  326.                       <li>
  327.                           <a href="{{ path('app_export_index') }}">
  328.                               <span class="title">Exports en compta</span>
  329.                           </a>
  330.                       </li>
  331.                     {% endif %}
  332.                     <li>
  333.                         <a href="#" class="set-boxed-layout">
  334.                             <span class="title"> Commandes </span>
  335.                         </a>
  336.                         <ul class="sub-menu">
  337.                             <li>
  338.                                 <a href="https://fr.lorealpartnershop.com" target="_blank">
  339.                                     <span class="title">L'Oréal</span>
  340.                                 </a>
  341.                             </li>
  342.                         </ul>
  343.                     </li>
  344.                 </ul>
  345.             </li>
  346.             <!-- marketing -->
  347.             <li>
  348.                 <a href="javascript:void(0)">
  349.                     <i class="clip-screen"></i>
  350.                     <span class="title"> Marketing </span>
  351.                     <span class="selected"></span>
  352.                 </a>
  353.                 <ul class="sub-menu">
  354.                 </ul>
  355.             </li>
  356.         </ul>
  357.         <!-- end: MAIN NAVIGATION MENU -->
  358.     </div>
  359.     <!-- end: SIDEBAR -->
  360. </div>