Fixes for saving a new system
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 41s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 2m8s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

This commit is contained in:
2024-06-03 22:31:38 +10:00
parent 434226f8bc
commit 27cdb02b06
6 changed files with 23 additions and 12 deletions

View File

@@ -3,6 +3,10 @@
Systems
@endsection
@php
use App\Models\System;
@endphp
@section('content')
<div class="row">
<div class="col-12">
@@ -14,12 +18,12 @@
<div class="row">
<div class="col-12">
<p>This system is aware of the following systems
@can('create',(new \App\Models\System))(you can <a href="{{ url('user/system/register') }}">register</a> more):@endcan
@can('admin',(new \App\Models\System))(you can <a href="{{ url('system/addedit') }}">add</a> more):@endcan
@can('create',(new System))(you can <a href="{{ url('user/system/register') }}">register</a> more):@endcan
@can('admin',(new System))(you can <a href="{{ url('system/addedit') }}">add</a> more):@endcan
</p>
@if (\App\Models\System::active()->count() === 0)
@can('create',(new \App\Models\System))
@if (System::active()->count() === 0)
@can('create',(new System))
<p>There are no systems setup, to <a href="{{ url('system/addedit') }}">set up your first</a>.</p>
@else
<p class="pad">There are no systems - you need to ask an admin to create one for you.</p>
@@ -40,7 +44,7 @@
</thead>
<tbody>
@foreach (\App\Models\System::active()->with(['addresses.zone.domain'])->get() as $oo)
@foreach (System::active()->with(['addresses.zone.domain'])->get() as $oo)
<tr>
<td><a href="{{ url('system/addedit',[$oo->id]) }}" @cannot('update_nn',$oo)class="disabled" @endcannot>{{ $oo->id }}</a></td>
<td>{{ $oo->name }} @if(! $oo->active)<span class="float-end"><small>[i]</small></span>@endif</td>