More work on user linking to existing defined system
This commit is contained in:
28
resources/views/user/system/register_send.blade.php
Normal file
28
resources/views/user/system/register_send.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<!-- $o = System::class -->
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('htmlheader_title')
|
||||
Link System
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="greyframe titledbox shadow0xb0">
|
||||
<h2 class="cap">Register System</h2>
|
||||
|
||||
@if($la)
|
||||
<p>OK, here's what we are going to do. I'm going to send you a routed netmail to <strong class="highlight">{{ $la->ftn }}</strong> with a code - please follow the instructions
|
||||
in that netmail.</p>
|
||||
<p>Once the code is validated, this system will be assigned to you.</p>
|
||||
@else
|
||||
<p>I cant validate that <strong class="highlight">{{ $o->name }}</strong> is your system, we dont share common zones.</p>
|
||||
<p>You might want to talk to an admin.</p>
|
||||
@endif
|
||||
|
||||
<!-- @todo Fix with CSS -->
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@@ -1,13 +1,41 @@
|
||||
<!-- $o = System::class -->
|
||||
<form class="row g-0 needs-validation" method="post" autocomplete="off" novalidate>
|
||||
<h3>System Details:</h3>
|
||||
<table class="monotable">
|
||||
<tr>
|
||||
<th>System</th>
|
||||
<th>{{ $o->name }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Sysop</th>
|
||||
<th>{{ $o->sysop }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Location</th>
|
||||
<th>{{ $o->location }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Networks</th>
|
||||
<th>{{ $o->addresses->pluck('ftn')->join(', ') }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Address</th>
|
||||
<th>{{ $o->access_mailer }}</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>If the details are above are not correct, then please contact the (ZC) to have them corrected first.</p>
|
||||
|
||||
<p>Otherwise, if all is good, we'll send a netmail to <strong class="highlight">{{ $o->sysop }}</strong> at <strong class="highlight">{{ $o->access_mailer }}</strong></p> with further details.
|
||||
|
||||
<form class="row g-0 needs-validation" method="post" autocomplete="off" action="{{ url('user/system/link') }}" novalidate>
|
||||
@csrf
|
||||
|
||||
@if($validate->count())
|
||||
<p>OK, here's what we are going to do. I'm going to send you a routed netmail with a code - please follow the instructions
|
||||
in that netmail.</p>
|
||||
<p>Once the code is validated, this system will be assigned to you.</p>
|
||||
@else
|
||||
<p>I cant validate that <strong class="highlight">{{ $o->name }}</strong> is your system, we share now common zones.</p>
|
||||
<p>You might want to talk to an admin.</p>
|
||||
@endif
|
||||
</form>
|
||||
<input type="hidden" name="system_id" value="{{ $o->id }}">
|
||||
<input type="hidden" name="name" value="{{ $o->name }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 pb-2">
|
||||
<input type="submit" name="action" class="btn btn-success" value="Link">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
Reference in New Issue
Block a user