feat: install and scaffold Tablar theme #6

Merged
rlong merged 139 commits from feature/tablar-theme into master 2026-05-02 16:01:21 -04:00
Showing only changes of commit bd87475b4d - Show all commits
+17 -3
View File
@@ -20,7 +20,8 @@
{{ csrf_field() }}
<div class="col-md-4">
<label for="judge_id" class="form-label">Judge</label>
<select name="judge_id" id="judge_id" class="form-select" required>
<!-- Temporarily disabling TomSelect with data-no-tomselect -->
<select name="judge_id" id="judge_id" class="form-select" data-no-tomselect="true" required>
@foreach($judges as $judge)
<option value="{{ $judge->idjudges }}">{{ $judge->judge_name }}</option>
@endforeach
@@ -28,7 +29,7 @@
</div>
<div class="col-md-4">
<label for="vehicle_id" class="form-label">Vehicle</label>
<select name="vehicle_id" id="vehicle_id" class="form-select" required>
<select name="vehicle_id" id="vehicle_id" class="form-select" data-no-tomselect="true" required>
@foreach($vehicles as $vehicle)
<option value="{{ $vehicle->idvehicles }}">{{ $vehicle->make }} {{ $vehicle->model }}</option>
@endforeach
@@ -50,5 +51,18 @@
</div>
@endsection
@push('js')
@include('components.tomselect')
<script>
// Update the tomselect component to ignore elements with data-no-tomselect
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll('select:not([data-no-tomselect])').forEach((el) => {
if (el.tomselect) return;
new TomSelect(el, {
copyClassesToDropdown: false,
dropdownParent: 'body',
controlInput: '<input>',
sortField: { field: 'text', direction: 'asc' }
});
});
});
</script>
@endpush