Changed layout of system/addedit
This commit is contained in:
parent
ceffc7ff14
commit
d90f431925
@ -6,8 +6,6 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
@if($o->exists)
|
@if($o->exists)
|
||||||
<h1>
|
<h1>
|
||||||
{{ $o->name }}@if($o->setup)<sup class="success">*</sup>@endif
|
{{ $o->name }}@if($o->setup)<sup class="success">*</sup>@endif
|
||||||
@ -652,8 +650,6 @@
|
|||||||
@include('widgets.modal_packet')
|
@include('widgets.modal_packet')
|
||||||
@include('widgets.modal_files')
|
@include('widgets.modal_files')
|
||||||
@include('widgets.modal_purge')
|
@include('widgets.modal_purge')
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('page-css')
|
@section('page-css')
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
<!-- $o = System::class -->
|
<!-- $o = System::class -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xl-9 col-12">
|
||||||
<div class="row pt-0">
|
<div class="row pt-0">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h4 class="mb-0 pb-2">System Users</h4>
|
<h4 class="mb-0 pb-2">System Users</h4>
|
||||||
|
|
||||||
<div class="row pt-0">
|
<div class="row pt-0">
|
||||||
<!-- Users -->
|
<!-- Users -->
|
||||||
<div class="col-4">
|
<div class="col-6">
|
||||||
<label for="users" class="form-label">Owners</label>
|
<label for="users" class="form-label">Owners</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-people-fill"></i></span>
|
<span class="input-group-text"><i class="bi bi-people-fill"></i></span>
|
||||||
@ -33,7 +35,7 @@
|
|||||||
|
|
||||||
<div class="row pt-0">
|
<div class="row pt-0">
|
||||||
<!-- Name -->
|
<!-- Name -->
|
||||||
<div class="col-4">
|
<div class="col-7">
|
||||||
<label for="name" class="form-label">BBS Name</label>
|
<label for="name" class="form-label">BBS Name</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-pc"></i></span>
|
<span class="input-group-text"><i class="bi bi-pc"></i></span>
|
||||||
@ -51,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ZeroTier ID -->
|
<!-- ZeroTier ID -->
|
||||||
<div class="col-3">
|
<div class="col-5">
|
||||||
<label for="zt_id" class="form-label">ZeroTier ID</label>
|
<label for="zt_id" class="form-label">ZeroTier ID</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-shield-lock-fill"></i></span>
|
<span class="input-group-text"><i class="bi bi-shield-lock-fill"></i></span>
|
||||||
@ -63,27 +65,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Active -->
|
|
||||||
<div class="offset-2 col-2">
|
|
||||||
@can('update',$o)
|
|
||||||
<label for="active" class="form-label">Active</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<input type="radio" class="btn-check" name="active" id="active_yes" value="1" required @if(old('active',$o->active))checked @endif>
|
|
||||||
<label class="btn btn-outline-success" for="active_yes">Yes</label>
|
|
||||||
|
|
||||||
<input type="radio" class="btn-check btn-danger" name="active" id="active_no" value="0" required @if(! old('active',$o->active))checked @endif>
|
|
||||||
<label class="btn btn-outline-danger" for="active_no">No</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endcan
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Sysop -->
|
<!-- Sysop -->
|
||||||
<div class="col-4">
|
<div class="col-6">
|
||||||
<label for="sysop" class="form-label">Sysop</label>
|
<label for="sysop" class="form-label">Sysop</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-person-fill"></i></span>
|
<span class="input-group-text"><i class="bi bi-person-fill"></i></span>
|
||||||
@ -99,7 +85,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Location -->
|
<!-- Location -->
|
||||||
<div class="col-4">
|
<div class="col-6">
|
||||||
<label for="location" class="form-label">Location</label>
|
<label for="location" class="form-label">Location</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-globe"></i></span>
|
<span class="input-group-text"><i class="bi bi-globe"></i></span>
|
||||||
@ -113,27 +99,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Hold -->
|
|
||||||
<div class="offset-1 col-2">
|
|
||||||
@can('update',$o)
|
|
||||||
<label for="hold" class="form-label">Hold Mail <i class="bi bi-info-circle" title="Dont give the node any mail regardless of poll mode"></i></label>
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<input type="radio" class="btn-check" name="hold" id="hold_yes" value="1" required @if(old('hold',$o->hold))checked @endif>
|
|
||||||
<label class="btn btn-outline-warning" for="hold_yes">Yes</label>
|
|
||||||
|
|
||||||
<input type="radio" class="btn-check btn-danger" name="hold" id="hold_no" value="0" required @if(! old('hold',$o->hold))checked @endif>
|
|
||||||
<label class="btn btn-outline-success" for="hold_no">No</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endcan
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Address -->
|
<!-- Address -->
|
||||||
<div class="col-5">
|
<div class="col-6">
|
||||||
<label for="address" class="form-label">BBS Internet Hostname</label>
|
<label for="address" class="form-label">BBS Internet Hostname</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-globe"></i></span>
|
<span class="input-group-text"><i class="bi bi-globe"></i></span>
|
||||||
@ -147,7 +117,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Phone -->
|
<!-- Phone -->
|
||||||
<div class="col-3">
|
<div class="col-4">
|
||||||
<label for="phone" class="form-label">Phone</label>
|
<label for="phone" class="form-label">Phone</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-telephone-fill"></i></span>
|
<span class="input-group-text"><i class="bi bi-telephone-fill"></i></span>
|
||||||
@ -159,30 +129,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Poll Mode -->
|
|
||||||
<div class="offset-1 col-3">
|
|
||||||
@can('update',$o)
|
|
||||||
<label for="pollmode" class="form-label">Poll Mode <i class="bi bi-info-circle" title="Poll node when mail available, poll on a schedule or hold mail for collection"></i></label>
|
|
||||||
<div class="input-group has-validation">
|
|
||||||
<div class="btn-group @error('pollmode') is-invalid @enderror" role="group">
|
|
||||||
<input type="radio" class="btn-check" name="pollmode" id="poll_crash" value="2" @if((int)old('pollmode',($o->pollmode === TRUE) ? 2 : 0) === 2)checked @endif>
|
|
||||||
<label class="btn btn-outline-success" for="poll_crash">Crash</label>
|
|
||||||
|
|
||||||
<input type="radio" class="btn-check btn-danger" name="pollmode" id="poll_normal" value="1" @if((int)old('pollmode',($o->pollmode === FALSE) ? 1 : 0) === 1)checked @endif>
|
|
||||||
<label class="btn btn-outline-secondary" for="poll_normal">Normal</label>
|
|
||||||
|
|
||||||
<input type="radio" class="btn-check btn-danger" name="pollmode" id="poll_hold" value="0" @if((int)old('pollmode',is_null($o->pollmode) ? 0 : 1) === 0)checked @endif>
|
|
||||||
<label class="btn btn-outline-warning" for="poll_hold">Hold</label>
|
|
||||||
</div>
|
|
||||||
<span class="invalid-feedback" role="alert">
|
|
||||||
@error('pollmode')
|
|
||||||
{{ $message }}
|
|
||||||
@enderror
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
@endcan
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -218,7 +164,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mail Packet -->
|
<!-- Mail Packet -->
|
||||||
<div class="col-2">
|
<div class="col-4">
|
||||||
<label for="pkt_type" class="form-label">Mail Packet</label>
|
<label for="pkt_type" class="form-label">Mail Packet</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-text"><i class="bi bi-ui-radios"></i></span>
|
<span class="input-group-text"><i class="bi bi-ui-radios"></i></span>
|
||||||
@ -234,15 +180,112 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="offset-3 col-4 @if((old('pollmode') === "0") || is_null($o->pollmode))d-none @endif" id="heartbeat_option">
|
<div class="row pt-4">
|
||||||
|
<!-- BBS Details -->
|
||||||
|
<div class="col-12">
|
||||||
|
<h4 class="mb-0 pb-2">BBS Details</h4>
|
||||||
|
|
||||||
|
<div class="row pt-0">
|
||||||
|
<div class="col-4">
|
||||||
|
<label for="method" class="form-label">Connection Method</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-text"><i class="bi bi-wifi"></i></span>
|
||||||
|
<select class="form-select @error('method') is-invalid @enderror" id="method" name="method" @cannot($action,$o)readonly @endcannot>
|
||||||
|
<option></option>
|
||||||
|
<option value="23" @if(old('method',$o->method) == 23)selected @endif>Telnet</option>
|
||||||
|
<option value="22" @if(old('method',$o->method) == 22)selected @endif>SSH</option>
|
||||||
|
<option value="519" @if(old('method',$o->method) == 519)selected @endif>Rlogin</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3">
|
||||||
|
<label for="method" class="form-label">Port</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<span class="input-group-text"><i class="bi bi-wifi"></i></span>
|
||||||
|
<input type="text" class="form-control text-end @error('port') is-invalid @enderror" id="port" placeholder="Port" name="port" value="{{ old('port',$o->port) }}" @cannot($action,$o)readonly @endcannot>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xl-3 col-12">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Active -->
|
||||||
|
<div class="col-6">
|
||||||
|
@can('update',$o)
|
||||||
|
<label for="active" class="form-label">Active</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="btn-group" role="group">
|
||||||
|
<input type="radio" class="btn-check" name="active" id="active_yes" value="1" required @if(old('active',$o->active))checked @endif>
|
||||||
|
<label class="btn btn-outline-success" for="active_yes">Yes</label>
|
||||||
|
|
||||||
|
<input type="radio" class="btn-check btn-danger" name="active" id="active_no" value="0" required @if(! old('active',$o->active))checked @endif>
|
||||||
|
<label class="btn btn-outline-danger" for="active_no">No</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endcan
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- Hold -->
|
||||||
|
<div class="col-6">
|
||||||
|
@can('update',$o)
|
||||||
|
<label for="hold" class="form-label">Hold Mail <i class="bi bi-info-circle" title="Dont give the node any mail regardless of poll mode"></i></label>
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="btn-group" role="group">
|
||||||
|
<input type="radio" class="btn-check" name="hold" id="hold_yes" value="1" required @if(old('hold',$o->hold))checked @endif>
|
||||||
|
<label class="btn btn-outline-warning" for="hold_yes">Yes</label>
|
||||||
|
|
||||||
|
<input type="radio" class="btn-check btn-danger" name="hold" id="hold_no" value="0" required @if(! old('hold',$o->hold))checked @endif>
|
||||||
|
<label class="btn btn-outline-success" for="hold_no">No</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endcan
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- Poll Mode -->
|
||||||
|
<div class="col-12">
|
||||||
|
@can('update',$o)
|
||||||
|
<label for="pollmode" class="form-label">Poll Mode <i class="bi bi-info-circle" title="Poll node when mail available, poll on a schedule or hold mail for collection"></i></label>
|
||||||
|
<div class="input-group has-validation">
|
||||||
|
<div class="btn-group @error('pollmode') is-invalid @enderror" role="group">
|
||||||
|
<input type="radio" class="btn-check" name="pollmode" id="poll_crash" value="2" @if((int)old('pollmode',($o->pollmode === TRUE) ? 2 : 0) === 2)checked @endif>
|
||||||
|
<label class="btn btn-outline-success" for="poll_crash">Crash</label>
|
||||||
|
|
||||||
|
<input type="radio" class="btn-check btn-danger" name="pollmode" id="poll_normal" value="1" @if((int)old('pollmode',($o->pollmode === FALSE) ? 1 : 0) === 1)checked @endif>
|
||||||
|
<label class="btn btn-outline-secondary" for="poll_normal">Normal</label>
|
||||||
|
|
||||||
|
<input type="radio" class="btn-check btn-danger" name="pollmode" id="poll_hold" value="0" @if((int)old('pollmode',is_null($o->pollmode) ? 0 : 1) === 0)checked @endif>
|
||||||
|
<label class="btn btn-outline-warning" for="poll_hold">Hold</label>
|
||||||
|
</div>
|
||||||
|
<span class="invalid-feedback" role="alert">
|
||||||
|
@error('pollmode')
|
||||||
|
{{ $message }}
|
||||||
|
@enderror
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
@endcan
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 @if((old('pollmode') === "0") || is_null($o->pollmode))d-none @endif" id="heartbeat_option">
|
||||||
@can('admin',$o)
|
@can('admin',$o)
|
||||||
<div class="row p-0">
|
<div class="row p-0">
|
||||||
<div class="offset-3 col-6">
|
<div class="col-6">
|
||||||
<label for="method" class="form-label">Heartbeat <i class="bi bi-info-circle" title="Attempt contact after last seen"></i></label>
|
<label for="heartbeat" class="form-label">Heartbeat <i class="bi bi-info-circle" title="Attempt contact after last seen"></i></label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-hourglass-bottom"></i></span>
|
<span class="input-group-text"><i class="bi bi-hourglass-bottom"></i></span>
|
||||||
<input type="text" class="form-control text-end @error('heartbeat') is-invalid @enderror" id="heartbeat" placeholder="Hours" name="heartbeat" value="{{ old('heartbeat',$o->heartbeat) }}">
|
<input type="text" class="form-control text-end @error('heartbeat') is-invalid @enderror" id="heartbeat" placeholder="Hrs" name="heartbeat" value="{{ old('heartbeat',$o->heartbeat) }}">
|
||||||
<span class="invalid-feedback" role="alert">
|
<span class="invalid-feedback" role="alert">
|
||||||
@error('heartbeat')
|
@error('heartbeat')
|
||||||
{{ $message }}
|
{{ $message }}
|
||||||
@ -255,7 +298,7 @@
|
|||||||
|
|
||||||
@if (! is_null($o->pollmode))
|
@if (! is_null($o->pollmode))
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="offset-3 col-9 bg-secondary rounded p-2 small">
|
<div class="col-12 bg-secondary rounded p-2 small">
|
||||||
@if($job = $o->poll())
|
@if($job = $o->poll())
|
||||||
<div class="row p-0">
|
<div class="row p-0">
|
||||||
<div class="col-4 text-dark">
|
<div class="col-4 text-dark">
|
||||||
@ -337,61 +380,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{--
|
|
||||||
<div class="col-12">
|
|
||||||
<table class="table monotable m-0 p-0 small noborder">
|
|
||||||
<tbody xstyle="border-style:dotted;">
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td class="cap text-end">Status :</td>
|
|
||||||
<td>
|
|
||||||
@if ($job) Queued
|
|
||||||
@elseif ($o->autohold)Auto Hold
|
|
||||||
@else
|
|
||||||
@switch($o->pollmode)
|
|
||||||
@case(TRUE) Crash @break;
|
|
||||||
@case(FALSE) Normal @break;
|
|
||||||
@default Hold
|
|
||||||
@endswitch
|
|
||||||
@endif
|
@endif
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
--}}
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row pt-4">
|
|
||||||
<!-- BBS Details -->
|
|
||||||
<div class="col-12">
|
|
||||||
<h4 class="mb-0 pb-2">BBS Details</h4>
|
|
||||||
|
|
||||||
<div class="row pt-0">
|
|
||||||
<div class="col-2">
|
|
||||||
<label for="method" class="form-label">Connection Method</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-text"><i class="bi bi-wifi"></i></span>
|
|
||||||
<select class="form-select @error('method') is-invalid @enderror" id="method" name="method" @cannot($action,$o)readonly @endcannot>
|
|
||||||
<option></option>
|
|
||||||
<option value="23" @if(old('method',$o->method) == 23)selected @endif>Telnet</option>
|
|
||||||
<option value="22" @if(old('method',$o->method) == 22)selected @endif>SSH</option>
|
|
||||||
<option value="519" @if(old('method',$o->method) == 519)selected @endif>Rlogin</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-2">
|
|
||||||
<label for="method" class="form-label">Port</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-text"><i class="bi bi-wifi"></i></span>
|
|
||||||
<input type="text" class="form-control text-end @error('port') is-invalid @enderror" id="port" placeholder="Port" name="port" value="{{ old('port',$o->port) }}" @cannot($action,$o)readonly @endcannot>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user