Mercurial > packages > framework
diff publishable/resources/views/components/form/select.blade.php @ 4:84c75d9d90be
Changing usage to be bootstrap 5, not everything is reviewed but it's been started
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 20:33:35 -0400 |
| parents | b44434aaa767 |
| children |
line wrap: on
line diff
--- a/publishable/resources/views/components/form/select.blade.php Mon Jun 23 20:20:31 2025 -0400 +++ b/publishable/resources/views/components/form/select.blade.php Tue Aug 19 20:33:35 2025 -0400 @@ -1,8 +1,8 @@ @props(['name', 'label', 'options' => [], 'value' => '', 'required' => false]) -<div class="mb-4"> - <label for="{{ $name }}" class="block text-gray-700">{{ $label }}</label> +<div class="mb-3"> + <label for="{{ $name }}" class="form-label">{{ $label }}</label> <select name="{{ $name }}" id="{{ $name }}" @if ($required) required @endif - class="mt-1 block w-full rounded border-gray-300 shadow-sm focus:ring focus:ring-blue-200"> + class="form-select"> <option value="">Select...</option> @foreach ($options as $optionValue => $optionLabel) <option value="{{ $optionValue }}" {{ old($name, $value) == $optionValue ? 'selected' : '' }}> @@ -11,6 +11,6 @@ @endforeach </select> @error($name) - <span class="text-red-600 text-sm">{{ $message }}</span> + <div class="text-danger small">{{ $message }}</div> @enderror </div>
