Work on registration of existing systems to users
This commit is contained in:
@@ -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,
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user