Enable demoting and promoting address role
This commit is contained in:
@@ -127,6 +127,12 @@
|
||||
<a href="{{ url('ftn/system/susaddress',[$oo->id]) }}" title="@if($oo->active)Pause @else Activate @endif Address"><i class="bi @if($oo->active)bi-pause-circle-fill @else bi-play-circle-fill @endif"></i></a>
|
||||
<a href="{{ url('ftn/system/movaddress',[$o->id,$oo->id]) }}" title="Move Address to another System"><i class="bi bi-arrow-right-square-fill"></i></a>
|
||||
<a href="{{ url('ftn/system/deladdress',[$oo->id]) }}" title="Delete Address"><i class="bi bi-trash-fill"></i></a>
|
||||
@if ((\App\Models\Address::NODE_HC|\App\Models\Address::NODE_ACTIVE) & $oo->role)
|
||||
<a href="{{ url('ftn/system/proaddress',[$oo->id]) }}" title="Promote Address"><i class="bi bi-arrow-up-square-fill"></i></a>
|
||||
@endif
|
||||
@if ((\App\Models\Address::NODE_NC|\App\Models\Address::NODE_HC) & $oo->role)
|
||||
<a href="{{ url('ftn/system/demaddress',[$oo->id]) }}" title="Demote Address"><i class="bi bi-arrow-down-square-fill"></i></a>
|
||||
@endif
|
||||
@endif
|
||||
@endcan
|
||||
</td>
|
||||
@@ -140,6 +146,18 @@
|
||||
{!! $message !!}
|
||||
</span>
|
||||
@enderror
|
||||
|
||||
@error('demaddress')
|
||||
<span class="btn btn-sm btn-danger" role="alert" style="text-align: left;">
|
||||
{!! $message !!}
|
||||
</span>
|
||||
@enderror
|
||||
|
||||
@error('proaddress')
|
||||
<span class="btn btn-sm btn-danger" role="alert" style="text-align: left;">
|
||||
{!! $message !!}
|
||||
</span>
|
||||
@enderror
|
||||
@endif
|
||||
|
||||
@can('admin',$o)
|
||||
|
Reference in New Issue
Block a user