mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
adds padding to multi select2 inputs
This commit is contained in:
parent
448472b6d3
commit
fe60309dfd
|
@ -841,8 +841,8 @@ input[type="radio"]:checked::before {
|
|||
grid-template-columns: .1em auto;
|
||||
gap: 1.5em;
|
||||
}
|
||||
.multi-select-fix {
|
||||
padding-left:10px;
|
||||
.select2-container .select2-search--inline .select2-search__field{
|
||||
padding-left:15px;
|
||||
}
|
||||
|
||||
/** --------------------------------------- **/
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
||||
|
||||
<div class="col-md-6">
|
||||
<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'" : '' }}>
|
||||
<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'" : '' }}>
|
||||
@if ($department_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
|
||||
<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 : '' }}
|
||||
|
|
Loading…
Reference in a new issue