chore(deps): added adminlte vendored items
(this might not be entirely necessary unless we're changing everything adminlte publishes) Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
38
resources/views/vendor/adminlte/components/form/select.blade.php
vendored
Normal file
38
resources/views/vendor/adminlte/components/form/select.blade.php
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('adminlte::components.form.input-group-component')
|
||||
|
||||
{{-- Set errors bag internallly --}}
|
||||
|
||||
@php($setErrorsBag($errors ?? null))
|
||||
|
||||
{{-- Set input group item section --}}
|
||||
|
||||
@section('input_group_item')
|
||||
|
||||
{{-- Select --}}
|
||||
<select id="{{ $id }}" name="{{ $name }}"
|
||||
{{ $attributes->merge(['class' => $makeItemClass()]) }}>
|
||||
{{ $slot }}
|
||||
</select>
|
||||
|
||||
@overwrite
|
||||
|
||||
{{-- Support to auto select the old submitted values --}}
|
||||
|
||||
@if($errors->any() && $enableOldSupport)
|
||||
@push('js')
|
||||
<script>
|
||||
|
||||
$(() => {
|
||||
|
||||
let oldOptions = @json(collect($getOldValue($errorKey)));
|
||||
|
||||
$('#{{ $id }} option').each(function()
|
||||
{
|
||||
let value = $(this).val() || $(this).text();
|
||||
$(this).prop('selected', oldOptions.includes(value));
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@endif
|
Reference in New Issue
Block a user