fix(morelevel): ajout de niveau03 et niveau04
All checks were successful
Cadoles/nineskeletor/pipeline/head This commit looks good

This commit is contained in:
2022-09-27 11:52:49 +02:00
parent 89cb0433c0
commit d1431bcce4
46 changed files with 7163 additions and 3839 deletions

View File

@ -25,12 +25,22 @@
{
icon: 'fa fa-building',
route: 'app_admin_niveau01',
name: appNiveau01label~'s',
name: appNiveau01labels,
},
{
icon: 'fa fa-sitemap',
route: 'app_admin_niveau02',
name: appNiveau02label~'s',
name: appNiveau02labels,
},
{
icon: 'fas fa-store-alt',
route: 'app_admin_niveau03',
name: appNiveau03labels,
},
{
icon: 'fas fa-monument',
route: 'app_admin_niveau04',
name: appNiveau04labels,
},
{
icon: 'fa fa-users',
@ -75,7 +85,6 @@
]
%}
<div id="sidebar" class="d-flex flex-column">
<ul class="nav nav-pills flex-column mb-auto">
{% for section in sidebar %}
@ -96,6 +105,10 @@
{% set toshow=true %}
{% if item.route=="app_admin_registration" and (appMasteridentity!="SQL" or appModeregistration is empty) %} {% set toshow=false %} {% endif %}
{% if item.route=="app_admin_whitelist" and (appMasteridentity!="SQL" or appModeregistration is empty) %} {% set toshow=false %} {% endif %}
{% if item.route=="app_admin_niveau02" and not appNiveau02use %} {% set toshow=false %} {% endif %}
{% if item.route=="app_admin_niveau03" and not appNiveau03use %} {% set toshow=false %} {% endif %}
{% if item.route=="app_admin_niveau04" and not appNiveau04use %} {% set toshow=false %} {% endif %}
{% 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}}">

View File

@ -7,8 +7,18 @@
{
icon: 'fa fa-sitemap',
route: 'app_modo_niveau02',
name: appNiveau02label~'s',
name: appNiveau02labels,
},
{
icon: 'fas fa-store-alt',
route: 'app_modo_niveau03',
name: appNiveau03labels,
},
{
icon: 'fas fa-monument',
route: 'app_modo_niveau04',
name: appNiveau04labels,
},
{
icon: 'fa fa-users',
route: 'app_modo_group',
@ -49,6 +59,10 @@
{% for item in section.items %}
{% set toshow=true %}
{% if item.route=="app_modo_registration" and (appMasteridentity!="SQL" or appModeregistration is empty) %} {% set toshow=false %} {% endif %}
{% if item.route=="app_modo_niveau02" and not appNiveau02use %} {% set toshow=false %} {% endif %}
{% if item.route=="app_modo_niveau03" and not appNiveau03use %} {% set toshow=false %} {% endif %}
{% if item.route=="app_modo_niveau04" and not appNiveau04use %} {% set toshow=false %} {% endif %}
{% if item.route=="app_modo_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}}">