Minor fixes to select component to render HTML helpers
This commit is contained in:
parent
8c8283503f
commit
fd780d1756
@ -22,6 +22,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@isset($helper)
|
@isset($helper)
|
||||||
<span class="input-helper">{{ $helper }}</span>
|
<span class="input-helper">{!! html_entity_decode($helper) !!}</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
@ -1,6 +1,6 @@
|
|||||||
<x-form.base {{ $attributes }}>
|
<x-form.base {{ $attributes }}>
|
||||||
<input type="hidden" id="{{ $name }}_disabled" name="{{ $name }}" value="" disabled>
|
<input type="hidden" id="{{ $name }}_disabled" name="{{ $name }}" value="" disabled>
|
||||||
<select class="form-select @error((! empty($old)) ? $old : $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @required(isset($required)) @disabled(isset($disabled))>
|
<select style="width: 80%" class="form-select @error((! empty($old)) ? $old : $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @required(isset($required)) @disabled(isset($disabled))>
|
||||||
@if(empty($value) || isset($addnew) || isset($choose))
|
@if(empty($value) || isset($addnew) || isset($choose))
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
@isset($addnew)
|
@isset($addnew)
|
||||||
@ -51,12 +51,9 @@
|
|||||||
dropdownAutoWidth: true,
|
dropdownAutoWidth: true,
|
||||||
width: 'style',
|
width: 'style',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
placeholder: '',
|
placeholder: '{{ $placeholder ?? '' }}',
|
||||||
@isset($addvalues)
|
@isset($addvalues)
|
||||||
tags: true,
|
tags: true,
|
||||||
@isset($placeholder)
|
|
||||||
placeholder: '{{ $placeholder }}',
|
|
||||||
@endisset
|
|
||||||
@endisset
|
@endisset
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user