v1.3.0 - Implemented DataTables

This commit is contained in:
frederikpyt
2020-09-18 10:04:33 +02:00
parent 2a2511daf4
commit 9096f64569
52 changed files with 34435 additions and 445 deletions
@@ -16,7 +16,7 @@
@endif
@if(auth()->user()->can('locations.create'))
<a class="btn btn-inline btn-sde-blue mb-0 ml-1" href="{{ route('locations.create') }}"><img src="{{ asset('/images/icons/plus.svg') }}" alt="Create">Opret Vaskemaskine lokation</a>
@endif
@endif
<div class="mt-1 ml-1">
<select name="risRosName" id="locationID">
<option selected="selected" name="all" value="all">Alle</option>
@@ -29,7 +29,7 @@
<div id="searchWashingMachine" class="mt-2">
<label>Vaskemaskiner</label>
<table id="washingSearch" class="tbl">
<tr>
<thead>
<th>Navn</th>
<th>Lokation</th>
@if(auth()->user()->can('washing.machine.edit'))
@@ -38,7 +38,7 @@
@if(auth()->user()->can('washing.machine.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif
</tr>
</thead>
@foreach($machines as $machine)
<tr>
<td>{{$machine->name}}</td>
@@ -63,7 +63,7 @@
<div id="locations" class="mt-2">
<label>Vaskemaskine lokation</label>
<table class="tbl">
<tr>
<thead>
<th>Navn</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Show"></th>
@if(auth()->user()->can('locations.edit'))
@@ -72,7 +72,7 @@
@if(auth()->user()->can('locations.delete'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
@endif
</tr>
</thead>
@foreach(\App\Location::query()->get() as $location)
<tr>
<td>{{$location->name}}</td>