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,8 +1,15 @@
<button type="button" class="btn bg-gradient-secondary dropdown-toggle btn-excel" data-toggle="dropdown" aria-expanded="false">
<i class="fa fa-file-excel"></i>
<button type="button" class="btn bg-gradient-secondary {{ $model }}-excel">
<i class="fa fa-fw fa-file-excel"></i>
</button>
<ul class="dropdown-menu" x-placement="bottom-start">
<li class="dropdown-item"><a href="#">Exporter la sélection</a></li>
<li class="dropdown-item"><a href="{{ $route }}/export">Exporter la liste complète</a></li>
</ul>
@push('js')
<script>
$('.{{ $model }}-excel').click(function() {
var data = $('#{{ $model }}-filters').serialize();
var url = "{{ $route }}/exportExcel?" + data;
window.location = url;
});
</script>
@endpush