Some datatables consistency
This commit is contained in:
@@ -10,13 +10,12 @@
|
||||
<p>In FTN network addresses, a zone is the 3rd dimension and used when a system supports 3D (or better) addressing, ie: <strong class="highlight">zone</strong>:net/node.point@domain.</p>
|
||||
<p>Zones are used with domains to uniquely identify a FTN network. Within an FTN network there can be multiple zones with the same domain.</p>
|
||||
<p>It is rare that a domain has multiple zones - unless it grows quite large. Zones can also be used to group systems into a common boundary.</p>
|
||||
<p>This system is aware of the following zones in each domain @can('admin',(new \App\Models\Zone))(you can <a href="{{ url('ftn/zone/addedit') }}">add</a> more)@endcan:</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<p>This system is aware of the following zones in each domain:</p>
|
||||
|
||||
@if (\App\Models\Zone::count() == 0)
|
||||
@can('admin',(new \App\Models\Zone))
|
||||
<p>There are no zones setup, to <a href="{{ url('ftn/zone/addedit') }}">set up your first</a>.</p>
|
||||
@@ -24,10 +23,7 @@
|
||||
<p class="pad">There are no zones - you need to ask an admin to create one for you.</p>
|
||||
@endcan
|
||||
@else
|
||||
@can('admin',(new \App\Models\Domain))
|
||||
<p>You can <a href="{{ url('ftn/zone/addedit') }}">Add New Zone</a>.</p>
|
||||
@endcan
|
||||
<table class="table monotable" id="zones">
|
||||
<table class="table monotable" id="zone">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Domain</th>
|
||||
@@ -54,15 +50,11 @@
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
{{--
|
||||
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css" media="screen">
|
||||
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/rowgroup/1.1.2/css/rowGroup.dataTables.min.css" media="screen">
|
||||
--}}
|
||||
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap5.min.css" media="screen" >
|
||||
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap5.min.css" media="screen">
|
||||
<link type="text/css" rel="stylesheet" href="{{ asset('plugin/dataTables/dataTables.bootstrap5.css') }}" media="screen">
|
||||
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/rowgroup/1.1.2/js/dataTables.rowGroup.min.js"></script>
|
||||
<script type="text/javascript" src="{{ asset('plugin/dataTables/dataTables.conditionalPaging.js') }}"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap5.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -74,18 +66,21 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('#zones').DataTable({
|
||||
paging: false,
|
||||
$('#zone').DataTable({
|
||||
paging: true,
|
||||
pageLength: 25,
|
||||
searching: true,
|
||||
rowGroup: {
|
||||
dataSrc: [0],
|
||||
autoWidth: false,
|
||||
conditionalPaging: {
|
||||
style: 'fade',
|
||||
speed: 500 // optional
|
||||
},
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [0],
|
||||
visible: false,
|
||||
},
|
||||
],
|
||||
language: {
|
||||
paginate: {
|
||||
previous: '<<',
|
||||
next: '>>'
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user