Add preview from father, add new features

This commit is contained in:
Ludovic CANDELLIER
2021-04-11 00:36:41 +02:00
parent f781158e36
commit f5ca57fdf2
58 changed files with 1482 additions and 532 deletions

View 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