DataTables for admin slowest devices report

This commit is contained in:
Eric A. Miller
2014-06-07 14:39:03 -04:00
parent d32fbc744b
commit da01b2c7ce

View File

@@ -1,7 +1,7 @@
[% IF results.count == 0 %] [% IF results.count == 0 %]
<div class="span3 alert alert-info">The aren't enough jobs to report.</div> <div class="span3 alert alert-info">The aren't enough jobs to report.</div>
[% ELSE %] [% ELSE %]
<table class="table table-bordered table-condensed table-hover nd_floatinghead"> <table id="asd-data-table" class="table table-bordered table-condensed table-hover" width="100%" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th class="nd_center-cell">Action</th> <th class="nd_center-cell">Action</th>
@@ -26,3 +26,14 @@
</table> </table>
[% END %] [% END %]
<script>
$(document).ready(function() {
$('#asd-data-table').dataTable({
"paging": false,
"searching": false,
"info": false,
"order": [[ 4, 'desc' ], [ 0, 'asc' ], [ 1, 'asc' ] ],
"pageLength": 25,
} );
} );
</script>