{% extends 'Default/parameters.html.twig' %}{% block html %} {% apply spaceless %} {% set menus = [] %} {% set menus = menus|merge({'ac':{label:"Agréments en cours"|trans, id:'ac', href: path('approval-in-progress')}}) %} {% set menus = menus|merge({'acl':{label:"Agréments clôturés"|trans, id:'acl', href: path('approval-closed')}}) %} {% if role.provider %} {% set menus = menus|merge({'fac':{label:"Mes factures"|trans, id:'fac', href: path('deposit-invoice-list')}}) %} {% endif %} {# % set menus = menus|merge({'about':{label:"A propos"|trans, id:'about', href: path('about')}}) %#} {% block content %} {% if isMobile() %} <div class=''> <ul class='list h4 upper flex col lspacing vt-15-in gpadding white'> {% for o in menus %} <li class='vt-3-in'> {% if o.href is defined and o.href and o.submenus is not defined %} <a href='{{o.href}}' class='vt-8-in nowrap flex col middle relative pointer'>{{o.label}}</a> {% else %} <span class='vt-8-in nowrap flex row space middle relative pointer medium os-click' data-target='next'> <span>{{o.label}}</span> <i class='fa fa-chevron-down'></i> </span> {% endif %} {% if o.submenus is defined %} <ul class='absolute shadow transition-1s p-alt text-left success medium vt-10-in hz-40-in hoverflow ytop-100'> <i class="absolute fill top left bg-white"></i> {% for k in o.submenus %} <li class='relative'> <a href='{{k.href}}' class='iflex col middle relative pointer vt-5-in vt-7'>{{k.label}}</a> </li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul> </div> {% else %} <div class='fill top'> <ul class='list flex row center p black fill text-center'> {% for o in menus %} <li class='relative h100 menu transition {{activeMenu == o.id ? "active"}}'> {% if o.href is defined and o.href %} <a href='{{o.href}}' class='nowrap transition relative pointer iflex row middle h100'> <span class='vt-5-in hz-20-in'>{{o.label}}</span> </a> {% else %} <span class='os-click transition relative pointer iflex row middle h100' data-target='next'> <span class='vt-5-in hz-20-in'>{{o.label}}</span> </span> {% endif %} {% if o.id == 'accounts' %} <div class='special absolute shadow transition-1s text-left success medium vt-30-in hz-30-in hoverflow ytop-100'> <i class="absolute fill top left bg-white"></i> <div class="w100 flex row around relative"> <div class="flex col left"> <h4 class="h6 black bottom-10"><a href="">Comptes courants</a></h4> {% for k in [] %} <a class="flex row p middle" href=""> <i class="bg-warning padding-5 circle right-10"></i> <span>{{k.label}}</span> </a> {% endfor %} </div> <div class="flex col left"> <h4 class="h6 black bottom-10"><a href="">Comptes épargnes</a></h4> {% for k in [] %} <a class="flex row p middle" href=""> <i class="bg-warning padding-5 circle right-10"></i> <span>{{k.label}}</span> </a> {% endfor %} </div> </div> </div> {% elseif o.submenus is defined %} <ul class='absolute shadow transition-1s p-alt text-left success medium vt-10-in hz-40-in hoverflow ytop-100'> <i class="absolute fill top left bg-white"></i> {% for k in o.submenus %} <li class='relative'> <a href='{{k.href}}' class='iflex col middle relative pointer vt-5-in vt-7'>{{k.label}}</a> </li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul> </div> {% endif %} {% endblock %} {% endapply %}{% endblock %}