ADD new feature icon to legacy sepeedbuttonnavbar

This commit is contained in:
E98Developer 2026-04-27 21:12:28 +02:00
parent 4d861ffc04
commit f471ed951b
7 changed files with 120 additions and 13 deletions

View File

@ -7110,8 +7110,14 @@ .speedButtonNavBar img{
max-width: 64px;
}
.speedButtonNavBar ul{
overflow: hidden;
margin-bottom: 1px;
list-style: none;
padding-left: 0;
}
.speedButtonNavBar ul::after {
content: "";
clear: both;
display: table;
}
.speedButtonNavBar ul li{
text-align: center;
@ -7121,9 +7127,40 @@ .speedButtonNavBar ul li{
float: left;
/*margin: 10px;*/
font-size: 11px;
overflow: hidden;
line-height: 1.2;
position: relative;
}
.speedButtonDropdown {
display: none;
position: absolute;
top: 105px;
left: 0;
width: 200px;
background-color: #343a40;
border: 1px solid #453821;
z-index: 1000;
text-align: left;
border-radius: 0 0 5px 5px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.speedButtonNavBar ul li:hover .speedButtonDropdown {
display: block;
}
.speedButtonDropdown a {
padding: 10px 15px;
color: white !important;
text-decoration: none;
display: block !important;
height: auto !important;
border-bottom: 1px solid #454545;
font-weight: bold;
}
.speedButtonDropdown a:hover {
background-color: #453821;
text-decoration: none;
}
.speedButtonDropdown a:last-child {
border-bottom: none;
}
.speedButtonNavBar ul li.selected{
background-color: rgba(200,200,200,0.5);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
{
"/js/app.js": "/js/app.js?id=8eebbb7cc03522e40f2a774f36c0d6b0",
"/js/admin.js": "/js/admin.js?id=bfc5c5377ba371e3a1775e3447fd6768",
"/js/module.js": "/js/module.js?id=97451660206244bb75c4d7c859d0e8bf",
"/js/admin.js": "/js/admin.js?id=ba79095db4031ff8fcb2db67804629a7",
"/js/module.js": "/js/module.js?id=67c3aa137dd61f211d1157b3ae1c5578",
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
"/css/app.css": "/css/app.css?id=11474616a7ef31af1acf43a25d65f4b6",
"/css/app.css": "/css/app.css?id=883a2d68194f1a6064f55eaedb17e768",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff?1295669cd4e305c97f2cfc16d56614b8": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff?1295669cd4e305c97f2cfc16d56614b8?id=d1af9af6052c51b169be6c628ae99bb5",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?23f19bb08961f37aaf692ff943823453": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?23f19bb08961f37aaf692ff943823453?id=0868992b7c56298026b76b22c534eab9",

View File

@ -9,8 +9,14 @@ .speedButtonNavBar img{
max-width: 64px;
}
.speedButtonNavBar ul{
overflow: hidden;
margin-bottom: 1px;
list-style: none;
padding-left: 0;
}
.speedButtonNavBar ul::after {
content: "";
clear: both;
display: table;
}
.speedButtonNavBar ul li{
text-align: center;
@ -20,9 +26,40 @@ .speedButtonNavBar ul li{
float: left;
/*margin: 10px;*/
font-size: 11px;
overflow: hidden;
line-height: 1.2;
position: relative;
}
.speedButtonDropdown {
display: none;
position: absolute;
top: 105px;
left: 0;
width: 200px;
background-color: #343a40;
border: 1px solid #453821;
z-index: 1000;
text-align: left;
border-radius: 0 0 5px 5px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.speedButtonNavBar ul li:hover .speedButtonDropdown {
display: block;
}
.speedButtonDropdown a {
padding: 10px 15px;
color: white !important;
text-decoration: none;
display: block !important;
height: auto !important;
border-bottom: 1px solid #454545;
font-weight: bold;
}
.speedButtonDropdown a:hover {
background-color: #453821;
text-decoration: none;
}
.speedButtonDropdown a:last-child {
border-bottom: none;
}
.speedButtonNavBar ul li.selected{
background-color: rgba(200,200,200,0.5);

View File

@ -1,5 +1,6 @@
@php
$showChangelog=!auth()->user()->hasRole('profit-center');
$showChangelog=false;
$ProfitCenter=auth()->user()->hasRole('profit-center');
debug($showChangelog);
@endphp

View File

@ -120,6 +120,28 @@
'icon' => 'price_list',
'link' => '/admin/pricelist-files',
'noAjax' => true,
'roles' => ['developer'],
],
'delivery' => [
'name' => 'delivery',
'DisplayName' => 'Szállítás',
'icon' => 'timetable3',
'link' => '#',
'roles' => ['root', 'admin', 'developer'],
'noAjax' => true,
'children' => [
['DisplayName' => 'Szállítási sablonok', 'link' => '/admin/delivery-schedules'],
['DisplayName' => 'Beszállítói felülbírálások', 'link' => '/admin/delivery-calendar-overrides'],
['DisplayName' => 'Profitcenter ütemezés', 'link' => '/admin/profit-center-supplier-schedules'],
['DisplayName' => 'Munkanaptárak', 'link' => '/admin/work-calendars'],
],
],
'calendarTest' => [
'name' => 'calendarTest',
'DisplayName' => 'Naptár Teszt',
'icon' => 'idopontok',
'link' => '/admin/calendar-test',
'noAjax' => true,
'roles' => ['root', 'developer', 'admin'],
],
@ -128,7 +150,7 @@
'DisplayName' => 'Legacy teszt',
'icon' => 'lombic128128',
'link' => route('legacy.test.form'),
'roles' => ['root', 'developer', 'admin'],
'roles' => ['root', 'developer'],
],
/*
*/
@ -169,7 +191,17 @@
@endisset
>
<img src="{{asset('images/icons/ico_'.$data->icon.'.png')}}" alt="" />{{ $data->DisplayName }}
</a></li>
</a>
@isset($data->children)
<div class="speedButtonDropdown">
@foreach($data->children as $child)
<a href="{{ $child->link }}" data-no-ajax="true">
{{ $child->DisplayName }}
</a>
@endforeach
</div>
@endisset
</li>
@endrole