This commit is contained in:
@ -101,6 +101,11 @@
|
||||
'icon': 'fa fa-file fa-fw',
|
||||
'name' : 'DOCUMENTS',
|
||||
'items' : [
|
||||
{
|
||||
icon: 'fa fa-cogs',
|
||||
route: 'app_admin_document',
|
||||
name: 'Documents',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-cogs',
|
||||
route: 'app_admin_documentcategory',
|
||||
@ -134,7 +139,7 @@
|
||||
{% for section in sidebar %}
|
||||
{% set sectionactive=false %}
|
||||
{% for item in section.items %}
|
||||
{% if item.route in app.request.get('_route') %}
|
||||
{% if item.route==app.request.get('_route') or (item.route~"_") in app.request.get('_route') %}
|
||||
{% set sectionactive=true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@ -161,7 +166,7 @@
|
||||
{% if item.route=="app_admin_group" and not appGroupuse %} {% set toshow=false %} {% endif %}
|
||||
|
||||
{%if toshow %}
|
||||
<a class="nav-link nav-link-item {% if item.route in app.request.get('_route') %}active{%endif%}" href="{{path(item.route)}}" title="{{item.name}}">
|
||||
<a class="nav-link nav-link-item {% if item.route==app.request.get('_route') or (item.route~'_') in app.request.get('_route') %}active{%endif%}" href="{{path(item.route)}}" title="{{item.name}}">
|
||||
<i class="{{item.icon}} fa-fw"></i>
|
||||
<span>{{item.name}}</span>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user