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.                 </ul>
  201.             </li>
  202.             <!-- planning -->
  203.             {% 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') %}
  204.                 <li class="{% if 'planning_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  205.                     <a href="javascript:void(0)">
  206.                         <i class="clip-screen"></i>
  207.                         <span class="title"> Planning </span>
  208.                         <span class="selected"></span>
  209.                     </a>
  210.                     <ul class="sub-menu" style="{% if 'planning_' in  app.request.attributes.get('_route')%}display:block{% endif %}">
  211.                         <li>
  212. {#                            <a href="{{ path('app_planning_site') }}"  class="{% if 'app_planning_site' == app.request.attributes.get('_route') %}open{% endif %}">#}
  213. {#                                <span class="title">Planning Clients </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.                                         {#Par site#}
  219.                                     {#</a>#}
  220.                                 {#</li>#}
  221.                                 {#<li>#}
  222.                                     {#<a href="{{ path('app_planning_site') }}" class="{% if 'app_planning_intervenant' == app.request.attributes.get('_route') %}open{% endif %}">#}
  223.                                         {#Par intervenant#}
  224.                                     {#</a>#}
  225.                                 {#</li>#}
  226.                             {#</ul>#}
  227.                         </li>
  228.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  229.                             <li>
  230.                                 <a href="{{ path('app_planning_liste') }}" class="{% if 'app_planning_liste' == app.request.attributes.get('_route') %}open{% endif %}">
  231.                                     Gestion Fiches RDV BO
  232.                                 </a>
  233.                             </li>
  234.                         {% endif %}
  235.                         <li>
  236.                             <a href="{{ path('app_planning_coiffeurliste') }}" class="{% if 'app_planning_coiffeurliste' == app.request.attributes.get('_route') %}open{% endif %}">
  237.                                 Gestion Fiches RDV
  238.                             </a>
  239.                         </li>
  240.                         <li>
  241.                             <a href="{{ path('app_planning_pilotage') }}"  class="{% if 'app_planning_pilotage' == app.request.attributes.get('_route') %}open{% endif %}">
  242.                                 <span class="title">Planning d'exploitation </span>
  243.                             </a>
  244.                         </li>
  245.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE')  %}
  246.                             <li>
  247.                                 <a href="{{ path('app_planning_liste_bo') }}" class="{% if 'app_planning_liste_bo' == app.request.attributes.get('_route') %}open{% endif %}">
  248.                                     Planning d'exploitation BO
  249.                                 </a>
  250.                             </li>
  251.                         {% endif %}
  252.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  253.                             <li>
  254.                                 <a href="{{ path('app_planning_calendrier') }}" class="{% if 'app_planning_calendrier' == app.request.attributes.get('_route') %}open{% endif %}">
  255.                                     Calendrier exploitation
  256.                                 </a>
  257.                             </li>
  258.                         {% endif %}
  259.                     </ul>
  260.                 </li>
  261.             {% endif %}
  262.             <!-- exploitation -->
  263.             <li class="{% if 'billing_' in  app.request.attributes.get('_route')  %}open{% endif %}">
  264.                 <a href="javascript:void(0)">
  265.                     <i class="clip-screen"></i>
  266.                     <span class="title"> Exploitation </span>
  267.                     <span class="selected"></span>
  268.                 </a>
  269.                 <ul class="sub-menu" style="{% if 'billing_' in  app.request.attributes.get('_route') or 'reglement_' in  app.request.attributes.get('_route') %}display:block{% endif %}">
  270.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE') %}
  271.                         <li>
  272.                             <a href="{{ path('app_billing_index') }}"  class="{% if 'app_billing_index' == app.request.attributes.get('_route') %}open{% endif %}">
  273.                                 <span class="title">Gestion des factures </span>
  274.                             </a>
  275.                         </li>
  276.                     {% endif %}
  277.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BO') or is_granted('ROLE_ADMINISTRATIVE')  %}
  278.                     <li>
  279.                         <a href="{{ path('app_reglement_index') }}"  class="{% if 'app_reglement_index' == app.request.attributes.get('_route') %}open{% endif %}">
  280.                             <span class="title">Gestion des règlements </span>
  281.                         </a>
  282.                     </li>
  283.                     {% endif %}
  284.                     <li>
  285.                         <a href="#" class="set-boxed-layout">
  286.                             <span class="title"> RH </span>
  287.                         </a>
  288.                         <ul class="sub-menu">
  289.                             {% if is_granted('ROLE_ADMIN')or is_granted('ROLE_ADMINISTRATIVE') %}
  290.                                 <li>
  291.                                     <a href="{{ path('app_exploitation_index') }}">
  292.                                         <span class="title">Gestion RH </span>
  293.                                     </a>
  294.                                 </li>
  295.                             {% endif %}
  296.                             <li>
  297.                                 <a href="https://rh.silae.fr/login" target="_blank">
  298.                                     <span class="title">Silae RH</span>
  299.                                 </a>
  300.                             </li>
  301.                             <li>
  302.                                 <a href="https://docs.google.com/spreadsheets/d/1aLxRc0F8C_crhn66XzZH71XzFY47gYI3Ix-WUGcfGDA/edit#gid=0" target="_blank">
  303.                                     <span class="title">Note de frais KM</span>
  304.                                 </a>
  305.                             </li>
  306.                         </ul>
  307.                     </li>
  308.                     <li>
  309.                         <a href="https://docs.google.com/spreadsheets/d/1Pk8zZRUvXVMugh_BAdZVgcn-PIal-3-17GE7Kug4iQQ/edit#gid=0" target="_blank">
  310.                             <span class="title">Stocks </span>
  311.                         </a>
  312.                     </li>
  313.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_ADMINISTRATIVE') or is_granted('ROLE_BO') %}
  314.                     <li>
  315.                         <a href="{{ path('app_reporting_index') }}">
  316.                             <span class="title">Reportings</span>
  317.                         </a>
  318.                     </li>
  319.                     {% endif %}
  320.                     {% if is_granted('ROLE_ADMIN') %}
  321.                       <li>
  322.                           <a href="{{ path('app_export_index') }}">
  323.                               <span class="title">Exports en compta</span>
  324.                           </a>
  325.                       </li>
  326.                     {% endif %}
  327.                     <li>
  328.                         <a href="#" class="set-boxed-layout">
  329.                             <span class="title"> Commandes </span>
  330.                         </a>
  331.                         <ul class="sub-menu">
  332.                             <li>
  333.                                 <a href="https://fr.lorealpartnershop.com" target="_blank">
  334.                                     <span class="title">L'Oréal</span>
  335.                                 </a>
  336.                             </li>
  337.                         </ul>
  338.                     </li>
  339.                 </ul>
  340.             </li>
  341.             <!-- marketing -->
  342.             <li>
  343.                 <a href="javascript:void(0)">
  344.                     <i class="clip-screen"></i>
  345.                     <span class="title"> Marketing </span>
  346.                     <span class="selected"></span>
  347.                 </a>
  348.                 <ul class="sub-menu">
  349.                 </ul>
  350.             </li>
  351.         </ul>
  352.         <!-- end: MAIN NAVIGATION MENU -->
  353.     </div>
  354.     <!-- end: SIDEBAR -->
  355. </div>