Changeset 92df8cd for resources/views/register-policeman.blade.php
- Timestamp:
- 02/11/24 18:29:24 (11 months ago)
- Branches:
- main
- Children:
- 7e9dadd
- Parents:
- d9c4096
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/register-policeman.blade.php
rd9c4096 r92df8cd 266 266 type="text" 267 267 name="first_name" 268 value=" {{(Input::has('embg'))?? 'embg'}}"268 value="" 269 269 id="first_name" 270 270 required … … 297 297 <div class="mb-6"> 298 298 <label class="block mb-2 uppercase font-bold text-xs text-gray-700" 299 for=" email"300 > 301 Email299 for="badge_no" 300 > 301 Број на значка 302 302 </label> 303 303 304 304 <input class="border border-gray-400 p-2 w-full" 305 type=" email"306 name=" email"307 value="{{old(' email')}}"308 id=" email"309 required 310 > 311 </div> 312 @error(' email')305 type="text" 306 name="badge_no" 307 value="{{old('badge_no')}}" 308 id="badge_no" 309 required 310 > 311 </div> 312 @error('badge_no') 313 313 <p class="text-red-500 text-xs mt-1">{{$message}}</p> 314 314 @enderror … … 363 363 <!-- ChartJS --> 364 364 <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script> 365 <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> 366 367 <script> 368 $(document).ready(function () { 369 $('#embg').on('input', function () { 370 var embg = $(this).val(); 371 372 $.ajax({ 373 url: '/get-person', // Replace with your actual route 374 type: 'POST', 375 data: { embg: embg, _token: '{{ csrf_token() }}' }, 376 success: function (data) { 377 $('#first_name').val(data.first_name); 378 $('#last_name').val(data.last_name); 379 } 380 }); 381 }); 382 }); 383 </script> 365 384 366 385
Note:
See TracChangeset
for help on using the changeset viewer.