new instance for 227

This commit is contained in:
Mathieu Lagace
2019-08-28 09:28:02 -04:00
parent 509a135e74
commit a3156ac246
12 changed files with 334 additions and 144 deletions

View File

@@ -13,19 +13,26 @@
<table id="log-data" class="table table-striped table-bordered">
<thead>
<tr>
<th>Quantité</th>
<th>#</th>
<th>Nom</th>
<th>Categorie</th>
<th>Description</th>
<th></th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($items as $item)
<tr>
<td style="width:5%;">{{$item->quantity}}</td>
<td>{{$item->official_number}}</td>
<td>{{$item->name}}</td>
<td>{{$item->desc}}</td>
<td style="width: 12%;"><a href="/admin/item/edit/{{$item->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i>&nbsp; Modifier</a><a type="button" class="btn btn-danger" onclick="deleteEvent({{$item->id}});"><i class="fa fa-times-circle" style="color:white;"></i></a></td>
<td>{{$item->category()->name}}</td>
<td>{!! $item->desc !!}</td>
<td style="width: 12%;">
<div class="btn-group">
<a href="/admin/item/edit/{{$item->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i>&nbsp; Modifier</a>
<a type="button" class="btn btn-danger" onclick="deleteEvent({{$item->id}});"><i class="fa fa-times-circle" style="color:white;"></i></a>
</div>
</td>
</tr>
@endforeach
@@ -58,13 +65,16 @@
@endsection
@section('custom_scripts')
<script src="https://cdn.datatables.net/rowgroup/1.1.0/js/dataTables.rowGroup.min.js"></script>
<script type="text/javascript">
(function($) {
$(document).ready(function() {
$('#log-data').DataTable({
"order": [[ 0, "desc" ]],
"order": [[ 2, "asc" ]],
"lengthMenu": [[25, 50, -1], [25, 50, "All"]],
"rowGroup": {
dataSrc: 2
}
});
} );
})(jQuery);