src/templates/Menu/menu.html.twig line 1

Open in your IDE?
  1. <div id="sidebar" class="sidebar responsive sidebar-fixed menu-min">
  2.     <script type="text/javascript">
  3.         try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
  4.     </script>
  5.     {% block botonesMenu%}
  6.     
  7.     {% endblock%}
  8.         <ul class="nav nav-list">
  9.              {% for m in menu %}
  10.                 {% if m.domain is defined %}
  11.                     {% set domain = m.domain %}
  12.                 {% else %}
  13.                     {% set domain = 'messages' %}
  14.                 {% endif %}  
  15.                     <li class="{%if m.menu_sel is defined %} active open {% endif %}">
  16.                         <a {% if m.submenu is defined %}class="dropdown-toggle"{% endif %} href="{%if m.ruta %}{{ m.ruta }}{% else %}#{% endif %}" >
  17.                             <i class="{% if m.icon is defined %}{{ m.icon }}{% else %}fas fa-desktop{% endif %} bigger-180"></i>
  18.                             <span class="menu-text bigger-110">{{m.key|trans({},domain)}}</span>
  19.                             {% if m.submenu is defined %}<b class="arrow fas fa-angle-down"></b>{% endif %}                        
  20.                         </a>
  21.                         <b class="arrow"></b>
  22.                         
  23.                         {% if m.submenu is defined %}
  24.                             <ul class="submenu" id="{{m.key|replace({'.': '_'})}}">
  25.                                 {% for submenu in m.submenu %}
  26.                                     {% if submenu.domain is defined %}
  27.                                         {% set domain = submenu.domain %}
  28.                                     {% else %}
  29.                                         {% set domain = 'messages' %}
  30.                                     {% endif %}          
  31.                                     <li class="{%if submenu.menu_sel is defined %} active open {% endif %}">
  32.                                         {% if submenu.ruta %}
  33.                                             {% set target='' %}
  34.                                             {% if submenu.target is defined %}
  35.                                                 {% set target = "target=_blank" %}
  36.                                             {% endif %} 
  37.                                             <a {% if submenu.submenu is defined %}class="dropdown-toggle"{% endif %} href="{%if submenu.ruta %}{{ submenu.ruta }}{% else %}#{% endif %}" {{target}}>
  38.                                                 {{submenu.key|trans({},domain)}}
  39.                                                 {% if submenu.submenu is defined %}<b class="arrow fa fa-angle-down"></b>{% endif %}        
  40.                                             </a>                                            
  41.                                         {% else %}
  42.                                             <a {% if submenu.submenu is defined %}class="dropdown-toggle blue"{% endif %} href="{%if submenu.ruta %}{{submenu.ruta }}{% else %}#{% endif %}" >
  43.                                                 <i class="menu-icon {% if submenu.icon is defined %}{{ submenu.icon }}{% endif %} bigger-180"></i>
  44.                                                 <span class="menu-text bigger-110">{{submenu.key|trans({},domain)}}</span>
  45.                                                 {% if submenu.submenu is defined %}<b class="arrow fa fa-angle-down"></b>{% endif %}                        
  46.                                             </a>
  47.                                         {% endif %}
  48.                                         <b class="arrow"></b>    
  49.                                         {% if submenu.submenu is defined %}
  50.                                             <{% if submenu.submenu is defined %}ul class="submenu" id="{{submenu.key|replace({'.': '_'})}}">
  51.                                                 {% for submenu2 in submenu.submenu %}
  52.                                                     {% if submenu2.domain is defined %}
  53.                                                         {% set domain = submenu2.domain %}
  54.                                                     {% else %}
  55.                                                         {% set domain = 'messages' %}
  56.                                                     {% endif %}       
  57.                                                     <li class="{%if submenu2.menu_sel is defined %} active open {% endif %}">                
  58.                                                         {%if submenu2.ruta %}
  59.                                                             {% set target='' %}
  60.                                                                 {% if submenu2.target is defined %}
  61.                                                                     {% set target = "target=_blank" %}
  62.                                                                 {% endif %} 
  63.                                                                 <a {% if submenu2.submenu is defined %}class="dropdown-toggle"{% endif %} href="{{ submenu2.ruta }}" {{target}}>
  64.                                                                     {{submenu2.key|trans({},domain)}}
  65.                                                                     {% if submenu2.submenu is defined %}<b class="arrow fa fa-angle-down"></b>{% endif %}        
  66.                                                                 </a> 
  67.                                                         {% else %}
  68.                                                             <a>{{submenu2.key|trans({},domain)}}</a>
  69.                                                         {% endif %}                                                    
  70.                                                     <b class="arrow"></b>
  71.                                                     {% if submenu2.submenu is defined %}
  72.                                                         <{% if submenu2.submenu is defined %}ul class="submenu" id="{{submenu.key|replace({'.': '_'})}}">
  73.                                                             {% for submenu3 in submenu2.submenu %}
  74.                                                                 {% if submenu3.domain is defined %}
  75.                                                                     {% set domain = submenu2.domain %}
  76.                                                                 {% else %}
  77.                                                                     {% set domain = 'messages' %}
  78.                                                                 {% endif %}       
  79.                                                                 <li class="{%if submenu3.menu_sel is defined %} active open {% endif %}">                
  80.                                                                     {% if submenu32.ruta %}
  81.                                                                         <a href="{{ submenu3.ruta }}">{{submenu3.key|trans({},domain)}}</a>
  82.                                                                     {% else %}
  83.                                                                         <a>{{submenu3.key|trans({},domain)}}</a>
  84.                                                                     {% endif %}
  85.                                                                 </li>  
  86.                                                                 <b class="arrow"></b>   
  87.                                                             {% endfor %}
  88.                                                         </ul>
  89.                                                         {% endif %}
  90.                                                     {% endif %}
  91.                                                     </li>  
  92.                                                 {% endfor %}
  93.                                             </ul>
  94.                                         {% endif %}
  95.                                         {% endif %}
  96.                                     </li>    
  97.                                 {% endfor %}
  98.                             </ul>
  99.                         {% endif %}
  100.                         
  101.                         
  102.                         
  103.                     </li> 
  104.                        {% endfor %}
  105.     </ul>
  106.     
  107.     <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse" style="z-index: 1;">
  108.             <i class="ace-icon fa fa-angle-double-right" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
  109.     </div>
  110. </div>    
  111.             
  112.             
  113.             
  114.             
  115.             
  116.             
  117.             
  118.             
  119.             
  120.             
  121.             
  122.              
  123.               
  124.