Added tool to list node addresses and the address we use,
Fix address edit which reactivated the address, Fix correct icons when using address merge, We only advertise validated addresses and use validated addresses for routing, Show our address on known AKA screen
This commit is contained in:
@@ -112,21 +112,37 @@
|
||||
@if($o->addresses->count())
|
||||
<p>This system has the following addresses assigned to it:</p>
|
||||
|
||||
<table class="table monotable">
|
||||
<table class="table monotable w-100" id="address_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Address</th>
|
||||
<th>Active</th>
|
||||
<th>@if($o->setup)Parent @else Uplink @endif</th>
|
||||
<th>Security</th>
|
||||
<th colspan="2">Role</th>
|
||||
<th>Role</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->addresses as $oo)
|
||||
<tr>
|
||||
<td @class(['trashed'=>$oo->trashed(),'inactive'=>(! $oo->trashed()) && (! $oo->active)])>{{ $oo->ftn }}<span class="float-end"><data value="{{ $oo->id }}:{{ $oo->validated ? 1 : 0 }}" class="validated"><i title="@if($oo->validated)Mail flowing @else Mail held @endif" @class(['bi','bi-activity'=>$oo->validated,'bi-radioactive'=>(! $oo->validated)])></i></data></span></td>
|
||||
<td>{{ $oo->active ? 'YES' : 'NO' }}</td>
|
||||
<tr @class(['text-secondary'=>$oo->trashed() || (! $oo->active_domain),'inactive'=>(! $oo->trashed()) && (! $oo->active)])>
|
||||
<td>{{ $oo->ftn }}<span class="float-end"><data value="{{ $oo->id }}:{{ $oo->validated ? 1 : 0 }}" class="validated"><i title="@if($oo->validated)Mail flowing @else Mail held @endif" @class(['bi','bi-activity'=>$oo->validated,'bi-radioactive'=>(! $oo->validated)])></i></data></span></td>
|
||||
<td>-{{ $oo->active ? 'Active' : 'Not Active' }}-</td>
|
||||
<td>
|
||||
@if($o->setup)
|
||||
{{ ($oo->validated && $x=$oo->parent()) ? $x->ftn : '' }}
|
||||
@else
|
||||
@if($x=our_address($oo))
|
||||
<!-- @todo To implement, if we enable address overriding -->
|
||||
@if(true)
|
||||
Auto <small class="text-secondary">[{{ $x->ftn4d }}]</small>
|
||||
@else
|
||||
<small>[Override]</small>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-end">{{ $oo->security }}</td>
|
||||
<td>{{ $oo->role_name }}</td>
|
||||
<td class="nowrap actions">
|
||||
@@ -614,13 +630,16 @@
|
||||
@endsection
|
||||
|
||||
@section('page-css')
|
||||
@css('datatables')
|
||||
<style>
|
||||
span.btn.btn-danger a {
|
||||
color: white
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
@js('datatables')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
if (window.location.hash) {
|
||||
@@ -664,6 +683,31 @@
|
||||
@endcan
|
||||
@endif
|
||||
|
||||
$('#address_table').DataTable({
|
||||
paging: true,
|
||||
pageLength: 25,
|
||||
searching: true,
|
||||
ordering: true,
|
||||
order: [[1,'asc']],
|
||||
conditionalPaging: {
|
||||
style: 'fade',
|
||||
speed: 500 // optional
|
||||
},
|
||||
rowGroup: {
|
||||
dataSrc: [1],
|
||||
},
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [1],
|
||||
visible: false,
|
||||
},
|
||||
{
|
||||
targets: [5],
|
||||
orderable: false
|
||||
}
|
||||
],
|
||||
});
|
||||
|
||||
$('data.validated').on('click',function(item) {
|
||||
that = $(this);
|
||||
var values = item.delegateTarget.value.split(':');
|
||||
|
Reference in New Issue
Block a user