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