Skip to content

Commit

Permalink
added form-control class
Browse files Browse the repository at this point in the history
  • Loading branch information
makss committed Sep 28, 2023
1 parent 3c3bc41 commit c1a359c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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', ['default_class' => 'form-select'])
@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', ['default_class' => 'form-select'])
@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', ['default_class' => 'form-select'])
@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-select'])
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
>

@if ($field['allows_null'])
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/crud/fields/select_multiple.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<input type="hidden" name="{{ $field['name'] }}" value="" @if(in_array('disabled', $field['attributes'] ?? [])) disabled @endif />
<select
name="{{ $field['name'] }}[]"
@include('crud::fields.inc.attributes', ['default_class' => 'form-select'])
@include('crud::fields.inc.attributes', ['default_class' => 'form-control form-select'])
bp-field-main-input
multiple>

Expand Down

0 comments on commit c1a359c

Please sign in to comment.