testing input paddings

This commit is contained in:
Godfrey M 2023-05-17 09:45:45 -07:00
parent 13c6a7f89b
commit 448472b6d3
2 changed files with 4 additions and 1 deletions

View file

@ -841,6 +841,9 @@ input[type="radio"]:checked::before {
grid-template-columns: .1em auto; grid-template-columns: .1em auto;
gap: 1.5em; gap: 1.5em;
} }
.multi-select-fix {
padding-left:10px;
}
/** --------------------------------------- **/ /** --------------------------------------- **/
/** End checkbox styles to replace iCheck **/ /** End checkbox styles to replace iCheck **/

View file

@ -3,7 +3,7 @@
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
<div class="col-md-6"> <div class="col-md-6">
<select class="js-data-ajax" data-endpoint="departments" data-placeholder="{{ trans('general.select_department') }}" name="{{ $fieldname }}" style="width: 100%" id="department_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}> <select class="js-data-ajax {{(isset($multiple) && ($multiple=='true')) ? "multi-select-fix" : ''}}" data-endpoint="departments" data-placeholder="{{ trans('general.select_department') }}" name="{{ $fieldname }}" style="width: 100%" id="department_select" aria-label="{{ $fieldname }}"{{ (isset($multiple) && ($multiple=='true')) ? " multiple='multiple'" : '' }}>
@if ($department_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) @if ($department_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
<option value="{{ $department_id }}" selected="selected" role="option" aria-selected="true" role="option"> <option value="{{ $department_id }}" selected="selected" role="option" aria-selected="true" role="option">
{{ (\App\Models\Department::find($department_id)) ? \App\Models\Department::find($department_id)->name : '' }} {{ (\App\Models\Department::find($department_id)) ? \App\Models\Department::find($department_id)->name : '' }}