Add preview from father, add new features
This commit is contained in:
25
resources/views/load/form/duallist.blade.php
Normal file
25
resources/views/load/form/duallist.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user