v0.10.16 - Various fixes
This commit is contained in:
+4
@@ -4,6 +4,7 @@ function toggleMenu(menu) {
|
||||
let htmlElement = document.getElementsByTagName('html')[0];
|
||||
let mainElement = document.getElementsByTagName('main')[0];
|
||||
let iconElement = document.getElementById("icon");
|
||||
let headerElement = document.getElementById("header");
|
||||
|
||||
if(menuElement.classList.contains("hide")) {
|
||||
menuElement.classList.remove("hide");
|
||||
@@ -12,6 +13,7 @@ function toggleMenu(menu) {
|
||||
logoElement.src = '/images/logos/Logo-hvid.svg';
|
||||
iconElement.classList.remove("fa-times");
|
||||
iconElement.classList.add("fa-bars");
|
||||
headerElement.style.position = 'fixed';
|
||||
} else {
|
||||
menuElement.classList.add("hide");
|
||||
mainElement.classList.add("d-none");
|
||||
@@ -19,6 +21,8 @@ function toggleMenu(menu) {
|
||||
logoElement.src = '/images/logos/Logo-hvid.svg';
|
||||
iconElement.classList.remove("fa-bars");
|
||||
iconElement.classList.add("fa-times");
|
||||
headerElement.style.position = 'relative';
|
||||
headerElement.style.top = '0';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -125,39 +125,61 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(auth()->user()->can('user.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "users.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('users.index') }}" class="text-white"><img src="{{asset("/images/icons/users-hvid.svg")}}" class="fa"><span style="margin-left: 4px;">Brugere</span></a></h3><span class="tooltiptext">Brugere</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('roles.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "roles.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('roles.index') }}" class="text-white"><img src="{{asset("/images/icons/role.svg")}}" class="fa"><span style="margin-left: 4px;">Roller</span></a></h3><span class="tooltiptext">Roller</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('news.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "news.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('news.index') }}" class="text-white"><img src="{{asset("/images/icons/news.svg")}}" class="fa"><span style="margin-left: 4px;">Nyheder</span></a></h3><span class="tooltiptext">Nyheder</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('menuplan.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "menu-plans.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('menu-plans.index') }}" class="text-white"><img src="{{asset("/images/icons/Menuplan.svg")}}" class="fa"><span style="margin-left: 4px;">Menuplan</span></a></h3><span class="tooltiptext">Menuplan</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('event.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "events.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('events.index') }}" class="text-white"><img src="{{asset("/images/icons/Aktiviteter.svg")}}" class="fa"><span style="margin-left: 4px;">Aktiviteter</span></a></h3><span class="tooltiptext">Aktiviteter</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('locations.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "locations.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('locations.index') }}" class="text-white"><img src="{{asset("/images/icons/location.svg")}}" class="fa"><span style="margin-left: 4px;">Lokationer</span></a></h3><span class="tooltiptext">Lokationer</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('washing.machine.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-machines.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-machines.index') }}" class="text-white"><img src="{{asset("/images/icons/wash.svg")}}" class="fa"><span style="margin-left: 4px;">Vaskemaskiner</span></a></h3><span class="tooltiptext">Vaskemaskiner</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('washing.machine.reservation.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-reservations.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-reservations.index') }}" class="text-white"><img src="{{asset("/images/icons/wash_res.svg")}}" class="fa"><span style="margin-left: 4px;">Reservationer</span></a></h3><span class="tooltiptext">Reservationer</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('contact.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "contacts.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('contacts.index') }}" class="text-white"><img src="{{asset("/images/icons/phone.svg")}}" class="fa"><span style="margin-left: 4px;">Kontakter</span></a></h3><span class="tooltiptext">Kontakter</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('guides.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "guides.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('guides.index') }}" class="text-white"><img src="{{asset("/images/icons/Vejledninger.svg")}}" class="fa"><span style="margin-left: 4px;">Vejledning</span></a></h3><span class="tooltiptext">Vejledning</span></div>
|
||||
</div>
|
||||
@endif
|
||||
@if(auth()->user()->can('feedback.show'))
|
||||
<div class="segment @if(\Illuminate\Support\Facades\Request::route()->getName() == "feedbacks.index") active @endif">
|
||||
<div class="tooltip"><h3 class="text-white"><a href="{{ route('feedbacks.index') }}" class="text-white"><img src="{{asset("/images/icons/feedback.svg")}}" class="fa"><span style="margin-left: 4px;">Feedback</span></a></h3><span class="tooltiptext">Feedback</span></div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="w-85" style="background-color: #cccccc;">
|
||||
<div class="directorypath text-white">
|
||||
|
||||
@@ -34,30 +34,40 @@
|
||||
<img src="{{URL::asset('/images/icons/Home.svg')}}" alt="Home">
|
||||
Home
|
||||
</a>
|
||||
@if(auth()->user()->can('menuplan.show'))
|
||||
<a href="{{ route("menu-plans.index") }}">
|
||||
<img src="{{URL::asset('/images/icons/Menuplan.svg')}}" alt="Menuplan">
|
||||
{{ __('msg.menuplan') }}
|
||||
</a>
|
||||
@endif
|
||||
@if(auth()->user()->can('event.show'))
|
||||
<a href="{{ route("events.index") }}">
|
||||
<img src="{{URL::asset('/images/icons/Aktiviteter.svg')}}" alt="Aktiviteter">
|
||||
{{ __('msg.aktiviteter') }}
|
||||
</a>
|
||||
@endif
|
||||
@if(auth()->user()->can('washing.machine.reservation.show'))
|
||||
<a href="{{ route("washing-reservations.appindex") }}">
|
||||
<img src="{{URL::asset('/images/icons/Vaske booking liste.svg')}}" alt="Reservationer">
|
||||
{{ __('msg.reservationer') }}
|
||||
</a>
|
||||
@endif
|
||||
@if(auth()->user()->can('contact.show'))
|
||||
<a href="{{ route("contacts.index") }}">
|
||||
<img src="{{URL::asset('/images/icons/Kontoret.svg')}}" alt="Kontakter">
|
||||
{{ __('msg.kontoret') }}
|
||||
</a>
|
||||
@endif
|
||||
<a href="{{ route("phones.index") }}">
|
||||
<img src="{{URL::asset('/images/icons/Vagttelefon-hvid.svg')}}" alt="Vagttelefon">
|
||||
{{ __('msg.vagttelefon') }}
|
||||
</a>
|
||||
@if(auth()->user()->can('guides.show'))
|
||||
<a href="{{ route("guides.index") }}">
|
||||
<img src="{{URL::asset('/images/icons/Vejledninger.svg')}}" alt="Guide">
|
||||
{{ __('msg.vejledning') }}
|
||||
</a>
|
||||
@endif
|
||||
<a href="{{ route("users.account") }}">
|
||||
<img src="{{URL::asset('/images/icons/user-hvid.svg')}}" alt="Konto">
|
||||
{{ __('msg.konto') }}
|
||||
|
||||
Reference in New Issue
Block a user