templates/Default/menu.html.twig line 1

Open in your IDE?
  1. {% extends 'Default/parameters.html.twig' %}
  2. {% block html %}
  3.     {% apply spaceless %}
  4.         {% set menus = [] %}
  5.         {% set menus = menus|merge({'ac':{label:"Agréments en cours"|trans, id:'ac', href: path('approval-in-progress')}}) %}
  6.         {% set menus = menus|merge({'acl':{label:"Agréments clôturés"|trans, id:'acl', href: path('approval-closed')}}) %}
  7.         {% if role.provider %}
  8.             {% set menus = menus|merge({'fac':{label:"Mes factures"|trans, id:'fac', href: path('deposit-invoice-list')}}) %}
  9.         {% endif %}
  10.         {# % set menus = menus|merge({'about':{label:"A propos"|trans, id:'about', href: path('about')}}) %#}
  11.         {% block content %}
  12.             {% if isMobile() %}
  13.                 <div class=''>
  14.                     <ul class='list h4 upper flex col lspacing vt-15-in gpadding white'>
  15.                         {% for o in menus %}
  16.                             <li class='vt-3-in'>
  17.                                 {% if o.href is defined and o.href and o.submenus is not defined %}
  18.                                     <a href='{{o.href}}' class='vt-8-in nowrap flex col middle relative pointer'>{{o.label}}</a>
  19.                                 {% else %}
  20.                                     <span class='vt-8-in nowrap flex row space middle relative pointer medium os-click' data-target='next'>
  21.                                         <span>{{o.label}}</span>
  22.                                         <i class='fa fa-chevron-down'></i>
  23.                                     </span>
  24.                                 {% endif %}
  25.                                 {% if o.submenus is defined %}
  26.                                     <ul class='absolute shadow transition-1s p-alt text-left success medium vt-10-in hz-40-in hoverflow ytop-100'>
  27.                                         <i class="absolute fill top left bg-white"></i>
  28.                                         {% for k in o.submenus %}
  29.                                             <li class='relative'>
  30.                                                 <a href='{{k.href}}' class='iflex col middle relative pointer vt-5-in vt-7'>{{k.label}}</a>
  31.                                             </li>
  32.                                         {% endfor %}
  33.                                     </ul>
  34.                                 {% endif %}
  35.                             </li>
  36.                         {% endfor %}
  37.                     </ul>
  38.                 </div>
  39.             {% else %}
  40.                 <div class='fill top'>
  41.                     <ul class='list flex row center p black fill text-center'>
  42.                         {% for o in menus %}
  43.                             <li class='relative h100 menu transition {{activeMenu == o.id ? "active"}}'>
  44.                                 {% if o.href is defined and o.href %}
  45.                                     <a href='{{o.href}}' class='nowrap transition relative pointer iflex row middle h100'>
  46.                                         <span class='vt-5-in hz-20-in'>{{o.label}}</span>
  47.                                     </a>
  48.                                 {% else %}
  49.                                     <span class='os-click transition relative pointer iflex row middle h100' data-target='next'>
  50.                 <span class='vt-5-in hz-20-in'>{{o.label}}</span>
  51.             </span>
  52.                                 {% endif %}
  53.                                 {% if o.id == 'accounts' %}
  54.                                     <div class='special absolute shadow transition-1s text-left success medium vt-30-in hz-30-in hoverflow ytop-100'>
  55.                                         <i class="absolute fill top left bg-white"></i>
  56.                                         <div class="w100 flex row around relative">
  57.                                             <div class="flex col left">
  58.                                                 <h4 class="h6 black bottom-10"><a href="">Comptes courants</a></h4>
  59.                                                 {% for k in [] %}
  60.                                                     <a class="flex row p middle" href="">
  61.                                                         <i class="bg-warning padding-5 circle right-10"></i>
  62.                                                         <span>{{k.label}}</span>
  63.                                                     </a>
  64.                                                 {% endfor %}
  65.                                             </div>
  66.                                             <div class="flex col left">
  67.                                                 <h4 class="h6 black bottom-10"><a href="">Comptes épargnes</a></h4>
  68.                                                 {% for k in [] %}
  69.                                                     <a class="flex row p middle" href="">
  70.                                                         <i class="bg-warning padding-5 circle right-10"></i>
  71.                                                         <span>{{k.label}}</span>
  72.                                                     </a>
  73.                                                 {% endfor %}
  74.                                             </div>
  75.                                         </div>
  76.                                     </div>
  77.                                 {% elseif o.submenus is defined %}
  78.                                     <ul class='absolute shadow transition-1s p-alt text-left success medium vt-10-in hz-40-in hoverflow ytop-100'>
  79.                                         <i class="absolute fill top left bg-white"></i>
  80.                                         {% for k in o.submenus %}
  81.                                             <li class='relative'>
  82.                                                 <a href='{{k.href}}' class='iflex col middle relative pointer vt-5-in vt-7'>{{k.label}}</a>
  83.                                             </li>
  84.                                         {% endfor %}
  85.                                     </ul>
  86.                                 {% endif %}
  87.                             </li>
  88.                         {% endfor %}
  89.                     </ul>
  90.                 </div>
  91.             {% endif %}
  92.         {% endblock %}
  93.     {% endapply %}
  94. {% endblock %}