[FIX] Useful_links: Add Label for Position and links on home (#705)

This commit is contained in:
Dennis 2023-02-02 23:45:16 +01:00 committed by GitHub
commit 1d2e453fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View file

@ -111,7 +111,7 @@ class HomeController extends Controller
return view('home')->with([
'usage' => $usage,
'credits' => $credits,
'useful_links' => UsefulLink::where("position","like","%dashboard%")->get()->sortby("id"),
'useful_links_dashboard' => UsefulLink::where("position","like","%dashboard%")->get()->sortby("id"),
'bg' => $bg,
'boxText' => $boxText,
'unit' => $unit,

View file

@ -95,6 +95,7 @@
</div>
<div class="form-group">
<label for="position">{{__('Position')}}</label>
<select id="position" style="width:100%" class="custom-select" name="position[]"
required multiple autocomplete="off" @error('position') is-invalid @enderror>
@foreach ($positions as $position)

View file

@ -96,6 +96,7 @@
</div>
<div class="form-group">
<label for="position">{{__('Position')}}</label>
<select id="position" style="width:100%" class="custom-select" name="position[]"
required multiple autocomplete="off" @error('position') is-invalid @enderror>
@foreach ($positions as $position)

View file

@ -133,7 +133,7 @@
</div>
<!-- /.card-header -->
<div class="card-body">
@foreach ($useful_links as $useful_link)
@foreach ($useful_links_dashboard as $useful_link)
<div class="alert alert-dismissible">
<button type="button" class="close" data-dismiss="alert"
aria-hidden="true">×</button>