Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bootstrap5 class form-select #5327

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/enum.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
@include('crud::fields.inc.translatable_icon')
<select
name="{{ $field['name'] }}"
@include('crud::fields.inc.attributes')
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
>

@if ($entity_model::isColumnNullable($field['name']))
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@if(isset($field['prefix'])) <span class="input-group-text">{!! $field['prefix'] !!}</span> @endif
<select
name="{{ $field['name'] }}"
@include('crud::fields.inc.attributes')
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
>

@if ($field['allows_null'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@if($field['multiple'])<input type="hidden" name="{{ $field['name'] }}" value="" @if(in_array('disabled', $field['attributes'] ?? [])) disabled @endif />@endif
<select
name="{{ $field['name'] }}@if ($field['multiple'])[]@endif"
@include('crud::fields.inc.attributes')
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
@if ($field['multiple'])multiple bp-field-main-input @endif
>

Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/select_grouped.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@if(isset($field['prefix'])) <div class="input-group-prepend"><span class="input-group-text">{!! $field['prefix'] !!}</span></div> @endif
<select
name="{{ $field['name'] }}"
@include('crud::fields.inc.attributes', ['default_class' => 'form-control'])
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
>

@if ($field['allows_null'])
Expand Down
3 changes: 1 addition & 2 deletions src/resources/views/crud/fields/select_multiple.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
{{-- To make sure a value gets submitted even if the "select multiple" is empty, we need a hidden input --}}
<input type="hidden" name="{{ $field['name'] }}" value="" @if(in_array('disabled', $field['attributes'] ?? [])) disabled @endif />
<select
class="form-control"
name="{{ $field['name'] }}[]"
@include('crud::fields.inc.attributes')
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
bp-field-main-input
multiple>

Expand Down