Update with new price management

This commit is contained in:
Ludovic CANDELLIER
2021-03-22 00:47:44 +01:00
parent 083d358fbd
commit 37ffaa938b
64 changed files with 1118 additions and 984 deletions

View File

@@ -1,9 +1,12 @@
<div class="input-group">
<div class="input-group-prepend">
@include('components.datatables.buttons.pageLength')
<span class="input-group-text"><i class="fa fa-search"></i></span>
</div>
<input type="text" class="form-control search-btn" placeholder="Rechercher..." value="">
<input type="text" class="form-control search-btn" placeholder="{{ __('search') }}" value="">
@if ((isset($with_filters) and $with_filters) || (isset($with_colvis) and $with_colvis))
<div class="input-group-append">
@if (isset($with_filters) && $with_filters)
@@ -14,14 +17,26 @@
@endif
</div>
@endif
</div>
@include('load.functions')
@push('js')
<script>
var $search = $('#{{ $model }}-table-header .search-btn');
$search.on( 'keyup click', function () {
var table = window.LaravelDataTables["{{ $model }}-table"];
table.search($search.val()).draw();
} );
$( document ).ready(function() {
var table = getDatatable("{{ $model }}");
var $search = $('#{{ $model }}-table-header .search-btn');
var state = getDatatableState("{{ $model }}");
if (state && (typeof(state.search.search) != 'undefined')) {
$search.val(state.search.search);
}
$search.on('keyup', delay(function () {
table.search($search.val()).draw();
}, 500));
});
</script>
@endpush