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> <tr>
<td>Domains</td> <td>Domains</td>
<td> <td>
<table class="table table-sm"> <table class="table table-sm" id="domains">
<thead> <thead>
<tr> <tr>
<th class="w-75">Domain</th> <th class="w-75">Domain</th>
@ -45,7 +45,7 @@
<tr> <tr>
<td>System</td> <td>System</td>
<td> <td>
<table class="table table-sm"> <table class="table table-sm" id="systems">
<thead> <thead>
<tr> <tr>
<th class="w-75">System</th> <th class="w-75">System</th>
@ -54,10 +54,10 @@
</thead> </thead>
<tbody> <tbody>
@foreach (\App\Models\System::orderBy('name')->get() as $o) @foreach (\App\Models\System::orderBy('name')->with(['users'])->get() as $o)
<tr> <tr>
<td>{{ $o->name }}</td> <td>{{ $o->name }}</td>
<td>@can('admin',$o)YES @else NO @endcan</td> <td>@can('update',$o)YES @else NO @endcan</td>
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
@ -68,7 +68,7 @@
<tr> <tr>
<td>Zone</td> <td>Zone</td>
<td> <td>
<table class="table table-sm"> <table class="table table-sm" id="zones">
<thead> <thead>
<tr> <tr>
<th class="w-75">Zone</th> <th class="w-75">Zone</th>
@ -90,3 +90,31 @@
</tbody> </tbody>
</table> </table>
@endsection @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') @extends('layouts.app')
@section('htmlheader_title')
Verify Packet
@endsection
@section('content') @section('content')
<form class="row g-0 needs-validation" method="post" enctype="multipart/form-data" novalidate> <form class="row g-0 needs-validation" method="post" enctype="multipart/form-data" novalidate>