Fix sorting of FTN zones in table Admin->Domain table
This commit is contained in:
parent
941f7b480e
commit
e9fde81bfb
@ -1,3 +1,5 @@
|
|||||||
|
@use(App\Models\Domain)
|
||||||
|
|
||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
@section('htmlheader_title')
|
@section('htmlheader_title')
|
||||||
FTN Domains
|
FTN Domains
|
||||||
@ -10,14 +12,14 @@
|
|||||||
<p>In FTN network addresses, a domain is the 5th dimension and used when a system supports 5D addressing, ie: zone:net/node.point@<strong class="highlight">domain</strong>.</p>
|
<p>In FTN network addresses, a domain is the 5th dimension and used when a system supports 5D addressing, ie: zone:net/node.point@<strong class="highlight">domain</strong>.</p>
|
||||||
<p>Domains are used with zones to uniquely identify a FTN network.</p>
|
<p>Domains are used with zones to uniquely identify a FTN network.</p>
|
||||||
<p><small>Some legacy Fidonet software is not 5D aware and may behave unexpectedly when a domain is used</small></p>
|
<p><small>Some legacy Fidonet software is not 5D aware and may behave unexpectedly when a domain is used</small></p>
|
||||||
<p>This system is aware of the following domains @can('admin',(new \App\Models\Domain))(you can <a href="{{ url('domain/addedit') }}">add</a> more)@endcan:</p>
|
<p>This system is aware of the following domains @can('admin',(new Domain))(you can <a href="{{ url('domain/addedit') }}">add</a> more)@endcan:</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-9">
|
<div class="col-9">
|
||||||
@if (\App\Models\Domain::count() === 0)
|
@if (Domain::count() === 0)
|
||||||
@can('admin',(new \App\Models\Domain))
|
@can('admin',(new Domain))
|
||||||
<p>There are no domains setup, to <a href="{{ url('domain/addedit') }}">set up your first</a>.</p>
|
<p>There are no domains setup, to <a href="{{ url('domain/addedit') }}">set up your first</a>.</p>
|
||||||
@else
|
@else
|
||||||
<p class="pad">There are no domains - you need to ask an admin to create one for you.</p>
|
<p class="pad">There are no domains - you need to ask an admin to create one for you.</p>
|
||||||
@ -35,7 +37,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach (\App\Models\Domain::orderBy('name')->with(['zones'])->get() as $oo)
|
@foreach (Domain::orderBy('name')->with(['zones'])->get() as $oo)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ url('domain/addedit',[$oo->id]) }}">{{ $oo->id }}</a></td>
|
<td><a href="{{ url('domain/addedit',[$oo->id]) }}">{{ $oo->id }}</a></td>
|
||||||
<td>{{ $oo->name }}</td>
|
<td>{{ $oo->name }}</td>
|
||||||
@ -75,6 +77,17 @@
|
|||||||
style: 'fade',
|
style: 'fade',
|
||||||
speed: 500
|
speed: 500
|
||||||
},
|
},
|
||||||
|
columnDefs: [
|
||||||
|
{
|
||||||
|
targets: 4,
|
||||||
|
type: 'num-fmt',
|
||||||
|
render: {
|
||||||
|
'sort': function (data,type,row,meta) {
|
||||||
|
return data ? parseFloat(data) : 0;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
language: {
|
language: {
|
||||||
paginate: {
|
paginate: {
|
||||||
previous: '<<',
|
previous: '<<',
|
||||||
|
Loading…
Reference in New Issue
Block a user