Datatables new layout
This commit is contained in:
10
resources/views/components/datatables/buttons/add.blade.php
Normal file
10
resources/views/components/datatables/buttons/add.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<button type="button" class="btn bg-gradient-info btn-add"><i class="fa fa-plus-circle"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('#{{ $model }}-table-header .btn-add').click(function() {
|
||||
url = '{{ $route }}' + '/create/';
|
||||
window.location = url;
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,14 @@
|
||||
<div class="text-right datatable-export-buttons">
|
||||
|
||||
<button type="button" class="btn bg-gradient-secondary btn-print" data-placement="top" data-original-title="Imprimer le tableau">
|
||||
<i class="fa fa-print"></i>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn bg-gradient-secondary btn-excel">
|
||||
<i class="fa fa-file-excel"></i>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn bg-gradient-secondary btn-pdf">
|
||||
<i class="fa fa-file-pdf"></i>
|
||||
</button>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<button type="button" class="btn bg-gradient-secondary btn-filter">
|
||||
<i class="fa fa-filter"></i>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user