Return input when linking a BBS, some consistent instantiation of <form>, more work on select2 transition

This commit is contained in:
2024-12-06 11:11:50 +11:00
parent 70f3a049f6
commit 082b70e072
6 changed files with 50 additions and 129 deletions

View File

@@ -7,7 +7,7 @@
@endsection
@section('content')
<form method="POST" autocomplete="off">
<form class="needs-validation" method="post" autocomplete="off" novalidate>
@csrf
<input type="hidden" name="action" value="register">
@@ -26,7 +26,7 @@
->whereRaw('id NOT IN (SELECT system_id FROM "system_user")')
->cursor())
<x-form.select name="system_id" icon="bi-laptop-fill" label="BBS Name" placeholder="See if your BBS exists, otherwise add it" feedback="BBS Name is required" helper="Enter your BBS name and press NEXT" :addvalues="true" :options="$options->map(fn($item,$key)=>['id'=>$item->id,'value'=>$item->name])" />
<x-form.select name="system_id" icon="bi-laptop-fill" label="BBS Name" placeholder="See if your BBS exists, otherwise add it" feedback="BBS Name is required" helper="Enter your BBS name and press NEXT" :addvalues="true" :options="$options->map(fn($item,$key)=>['id'=>$item->id,'value'=>$item->name])" required/>
</div>
</div>