first commit symfony 6
This commit is contained in:
105
templates/Include/sidebaradmin.html.twig
Normal file
105
templates/Include/sidebaradmin.html.twig
Normal file
@ -0,0 +1,105 @@
|
||||
{% set sidebar = [
|
||||
{
|
||||
'id': 'sidebar-config',
|
||||
'icon': 'fa fa-gear',
|
||||
'name' : 'CONFIGURATION',
|
||||
'items' : [
|
||||
{
|
||||
icon: 'fa fa-table',
|
||||
route: 'app_admin_config',
|
||||
name: 'Général',
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'id': 'sidebar-organisation',
|
||||
'icon': 'fa fa-sitemap',
|
||||
'name' : 'ORGANISATION',
|
||||
'items' : [
|
||||
{
|
||||
icon: 'fa fa-building',
|
||||
route: 'app_admin_niveau01',
|
||||
name: appNiveau01label~'s',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-sitemap',
|
||||
route: 'app_admin_niveau02',
|
||||
name: appNiveau02label~'s',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-users',
|
||||
route: 'app_admin_group',
|
||||
name: 'Groupes',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-child',
|
||||
route: 'app_admin_user',
|
||||
name: 'Utilisateurs',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-edit',
|
||||
route: 'app_admin_registration',
|
||||
name: 'Inscriptions',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-tasks',
|
||||
route: 'app_admin_whitelist',
|
||||
name: 'Listes Blanche',
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'id': 'sidebar-cron',
|
||||
'icon': 'fa fa-wrench',
|
||||
'name' : 'OUTILS',
|
||||
'items' : [
|
||||
{
|
||||
icon: 'fa fa-cogs',
|
||||
route: 'app_admin_cron',
|
||||
name: 'Cron Jobs',
|
||||
},
|
||||
|
||||
{
|
||||
icon: 'fas fa-star-of-life',
|
||||
route: 'app_rest',
|
||||
name: 'API',
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
%}
|
||||
|
||||
|
||||
<div id="sidebar" class="d-flex flex-column">
|
||||
<ul class="nav nav-pills flex-column mb-auto">
|
||||
{% for section in sidebar %}
|
||||
{% set sectionactive=false %}
|
||||
{% for item in section.items %}
|
||||
{% if item.route in app.request.get('_route') %}
|
||||
{% set sectionactive=true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="nav-link-section">
|
||||
<a class="nav-link nav-link-title" onClick="$('#sidebar .nav-link-items').hide();$(this).next().toggle();">
|
||||
<i class="{{section.icon}}"></i>
|
||||
<span>{{section.name}}</span>
|
||||
</a>
|
||||
<div class="nav-link-items" style="{% if sectionactive %}display:block{%else%}display:none{%endif%}">
|
||||
{% for item in section.items %}
|
||||
{% 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 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}}">
|
||||
<i class="{{item.icon}} fa-fw"></i>
|
||||
<span>{{item.name}}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
64
templates/Include/sidebarmodo.html.twig
Normal file
64
templates/Include/sidebarmodo.html.twig
Normal file
@ -0,0 +1,64 @@
|
||||
{% set sidebar = [
|
||||
{
|
||||
'id': 'sidebar-organisation',
|
||||
'icon': 'fa fa-sitemap',
|
||||
'name' : 'ORGANISATION',
|
||||
'items' : [
|
||||
{
|
||||
icon: 'fa fa-sitemap',
|
||||
route: 'app_modo_niveau02',
|
||||
name: appNiveau02label~'s',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-users',
|
||||
route: 'app_modo_group',
|
||||
name: 'Groupes',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-child',
|
||||
route: 'app_modo_user',
|
||||
name: 'Utilisateurs',
|
||||
},
|
||||
{
|
||||
icon: 'fa fa-edit',
|
||||
route: 'app_modo_registration',
|
||||
name: 'Inscriptions',
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
%}
|
||||
|
||||
|
||||
<div id="sidebar" class="d-flex flex-column">
|
||||
<ul class="nav nav-pills flex-column mb-auto">
|
||||
{% for section in sidebar %}
|
||||
{% set sectionactive=false %}
|
||||
{% for item in section.items %}
|
||||
{% if item.route in app.request.get('_route') %}
|
||||
{% set sectionactive=true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="nav-link-section">
|
||||
<a class="nav-link nav-link-title" onClick="$('#sidebar .nav-link-items').hide();$(this).next().toggle();">
|
||||
<i class="{{section.icon}}"></i>
|
||||
<span>{{section.name}}</span>
|
||||
</a>
|
||||
<div class="nav-link-items" style="{% if sectionactive %}display:block{%else%}display:none{%endif%}">
|
||||
{% 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 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}}">
|
||||
<i class="{{item.icon}} fa-fw"></i>
|
||||
<span>{{item.name}}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
24
templates/Include/style.css.twig
Normal file
24
templates/Include/style.css.twig
Normal file
@ -0,0 +1,24 @@
|
||||
<style>
|
||||
:root{
|
||||
--colorbgbodylight: {{ app.session.get('colorbgbodylight')|raw }};
|
||||
--colorbgbodydark: {{ app.session.get('colorbgbodydark')|raw }};
|
||||
--colorfttitlelight: {{ app.session.get('colorfttitlelight')|raw }};
|
||||
--colorfttitledark: {{ app.session.get('colorfttitledark')|raw }};
|
||||
--colorftbodylight: {{ app.session.get('colorftbodylight')|raw }};
|
||||
--colorftbodydark: {{ app.session.get('colorftbodydark')|raw }};
|
||||
--fontbody: "{{ app.session.get('fontbody')|raw }}";
|
||||
--fonttitle: "{{ app.session.get('fonttitle')|raw }}";
|
||||
--fontsizeh1: {{ app.session.get('fontsizeh1')~"px"|raw }};
|
||||
--fontsizeh2: {{ app.session.get('fontsizeh2')~"px"|raw }};
|
||||
--fontsizeh3: {{ app.session.get('fontsizeh3')~"px"|raw }};
|
||||
--fontsizeh4: {{ app.session.get('fontsizeh4')~"px"|raw }};
|
||||
--lineheighth1:{{app.session.get("fontsizeh1")-10}}px;
|
||||
|
||||
--colorbgbodylight-darker: {{ app.session.get('colorbgbodylight-darker')|raw }};
|
||||
--colorbgbodydark-darker: {{ app.session.get('colorbgbodydark-darker')|raw }};
|
||||
--colorfttitlelight-darker: {{ app.session.get('colorfttitlelight-darker')|raw }};
|
||||
|
||||
--header: url("\{{ appAlias }}\uploads\header\{{ app.session.get('headerimage')|raw }}");
|
||||
--colorbgbodydark-rgb: {{ app.session.get('colorbgbodydark-rgb')|raw }};
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user