Fix title on verify packet, update permissions view

This commit is contained in:
Deon George 2021-11-26 22:09:55 +11:00
parent 41d36fe86d
commit a24bba0481
2 changed files with 36 additions and 5 deletions

View File

@ -22,7 +22,7 @@
<tr>
<td>Domains</td>
<td>
<table class="table table-sm">
<table class="table table-sm" id="domains">
<thead>
<tr>
<th class="w-75">Domain</th>
@ -45,7 +45,7 @@
<tr>
<td>System</td>
<td>
<table class="table table-sm">
<table class="table table-sm" id="systems">
<thead>
<tr>
<th class="w-75">System</th>
@ -54,10 +54,10 @@
</thead>
<tbody>
@foreach (\App\Models\System::orderBy('name')->get() as $o)
@foreach (\App\Models\System::orderBy('name')->with(['users'])->get() as $o)
<tr>
<td>{{ $o->name }}</td>
<td>@can('admin',$o)YES @else NO @endcan</td>
<td>@can('update',$o)YES @else NO @endcan</td>
</tr>
@endforeach
</tbody>
@ -68,7 +68,7 @@
<tr>
<td>Zone</td>
<td>
<table class="table table-sm">
<table class="table table-sm" id="zones">
<thead>
<tr>
<th class="w-75">Zone</th>
@ -90,3 +90,31 @@
</tbody>
</table>
@endsection
@section('page-css')
@css('datatables')
@append
@section('page-scripts')
@js('datatables')
<script type="text/javascript">
$(document).ready(function() {
$('#systems').DataTable({
paging: true,
pageLength: 25,
searching: true,
order: [],
conditionalPaging: {
style: 'fade',
speed: 500
},
language: {
paginate: {
previous: '&lt;&lt;',
next: '&gt;&gt;'
}
}
});
});
</script>
@append

View File

@ -1,4 +1,7 @@
@extends('layouts.app')
@section('htmlheader_title')
Verify Packet
@endsection
@section('content')
<form class="row g-0 needs-validation" method="post" enctype="multipart/form-data" novalidate>