Include client side validation through HTML

This commit is contained in:
Matt Young 2024-06-07 10:47:16 -05:00
parent cf51c46d2e
commit e7fa4945d3
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@
@foreach($subscores as $subscore)
<x-table.td>
<input type="number"
{{-- max="{{ $subscore->max_score }}"--}}
max="{{ $subscore->max_score }}"
id="j{{ $judge->id }}ss{{ $subscore->id }}"
name="judge{{ $judge->id }}[{{ $subscore->id }}]"
class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 judge{{$judge->id}}score"
@if($oldScores) value="{{ $oldScores['judge'.$judge->id][$subscore->id] }}" @endif
>
required >
</x-table.td>
@endforeach
<x-table.td id="judge{{ $judge->id }}total" x-text="total">