From 3c3bc4174302f93a1ab099fe940c42745c5c1e60 Mon Sep 17 00:00:00 2001 From: makss Date: Thu, 28 Sep 2023 02:00:02 +0300 Subject: [PATCH 1/2] Added bootstrap5 class form-select --- src/resources/views/crud/fields/enum.blade.php | 2 +- src/resources/views/crud/fields/select.blade.php | 2 +- src/resources/views/crud/fields/select_from_array.blade.php | 2 +- src/resources/views/crud/fields/select_grouped.blade.php | 2 +- src/resources/views/crud/fields/select_multiple.blade.php | 3 +-- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/resources/views/crud/fields/enum.blade.php b/src/resources/views/crud/fields/enum.blade.php index 6d53f31fbd..5c696faaa4 100644 --- a/src/resources/views/crud/fields/enum.blade.php +++ b/src/resources/views/crud/fields/enum.blade.php @@ -66,7 +66,7 @@ @include('crud::fields.inc.translatable_icon') 'form-select']) > @if ($field['allows_null']) diff --git a/src/resources/views/crud/fields/select_from_array.blade.php b/src/resources/views/crud/fields/select_from_array.blade.php index 170f44c3e4..c4af5239ec 100644 --- a/src/resources/views/crud/fields/select_from_array.blade.php +++ b/src/resources/views/crud/fields/select_from_array.blade.php @@ -10,7 +10,7 @@ @if($field['multiple'])@endif 'form-control']) + @include('crud::fields.inc.attributes', ['default_class' => 'form-select']) > @if ($field['allows_null']) diff --git a/src/resources/views/crud/fields/select_multiple.blade.php b/src/resources/views/crud/fields/select_multiple.blade.php index 96d801fa99..03bc99b849 100644 --- a/src/resources/views/crud/fields/select_multiple.blade.php +++ b/src/resources/views/crud/fields/select_multiple.blade.php @@ -22,9 +22,8 @@ {{-- To make sure a value gets submitted even if the "select multiple" is empty, we need a hidden input --}} 'form-select']) + @include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select']) > @if ($entity_model::isColumnNullable($field['name'])) diff --git a/src/resources/views/crud/fields/select.blade.php b/src/resources/views/crud/fields/select.blade.php index bc55c17faf..b67d32b80f 100644 --- a/src/resources/views/crud/fields/select.blade.php +++ b/src/resources/views/crud/fields/select.blade.php @@ -25,7 +25,7 @@ @if(isset($field['prefix'])) {!! $field['prefix'] !!} @endif @endif 'form-select']) + @include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select']) > @if ($field['allows_null']) diff --git a/src/resources/views/crud/fields/select_multiple.blade.php b/src/resources/views/crud/fields/select_multiple.blade.php index 03bc99b849..13b122c5b5 100644 --- a/src/resources/views/crud/fields/select_multiple.blade.php +++ b/src/resources/views/crud/fields/select_multiple.blade.php @@ -23,7 +23,7 @@