25 lines
741 B
PHP
25 lines
741 B
PHP
@if(!defined('LOAD_DUALLIST'))
|
|
@push('scripts')
|
|
<script src="{{ asset('/assets/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js') }}"></script>
|
|
|
|
<script>
|
|
function initDualList(sel) {
|
|
var selector = (typeof(sel) == 'undefined') ? '.duallist' : sel;
|
|
var settings = {
|
|
nonSelectedListLabel: 'Non-selected',
|
|
selectedListLabel: 'Selected',
|
|
preserveSelectionOnMove: 'moved',
|
|
moveOnSelect: true,
|
|
nonSelectedFilter: ''
|
|
};
|
|
$(selector).bootstrapDualListbox(settings);
|
|
}
|
|
</script>
|
|
|
|
@endpush
|
|
|
|
@push('css')
|
|
<link rel="stylesheet" href="{{ asset('/assets/plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css') }}">
|
|
@endpush
|
|
@php(define('LOAD_DUALLIST', true))
|
|
@endif |