Work on registration of existing systems to users

This commit is contained in:
Deon George
2022-03-14 22:28:54 +11:00
parent d68307461e
commit 8072f7c5a9
19 changed files with 553 additions and 56 deletions

View File

@@ -119,7 +119,7 @@
$.ajax({
url : '{{ url('user/system/register') }}',
type : 'POST',
data : { system_id: system_id,name: $('#name').val(),action: 'create',old: {!! json_encode(old()) !!} },
data : { system_id: system_id,name: $('#name').val(),action: 'register',old: {!! json_encode(old()) !!} },
dataType : 'json',
async : true,
cache : false,

View File

@@ -0,0 +1,13 @@
<!-- $o = System::class -->
<form class="row g-0 needs-validation" method="post" autocomplete="off" 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>