38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
[% USE Number.Format %]
 | 
						|
<table id="data-table" class="table table-bordered table-condensed table-hover" width="100%" cellspacing="0">
 | 
						|
  <thead>
 | 
						|
    <tr>
 | 
						|
      <th class="nd_center-cell">Subnet</th>
 | 
						|
      <th class="nd_center-cell">Size</th>
 | 
						|
      <th class="nd_center-cell">Number of Active Nodes</th>
 | 
						|
      <th class="nd_center-cell">Percent Utilization</th>
 | 
						|
    </tr>
 | 
						|
  </thead>
 | 
						|
  </tbody>
 | 
						|
    [% FOREACH row IN results %]
 | 
						|
    <tr>
 | 
						|
      <td class="nd_center-cell"><a href="[% uri_for('/report/ipinventory') %]?subnet=[% row.subnet | uri %]&daterange=[% daterange | uri %]&limit=[% row.subnet_size | uri %]">
 | 
						|
               [% row.subnet | html_entity %]</a></td>
 | 
						|
      <td class="nd_center-cell">[% row.subnet_size | format_number %]</td>
 | 
						|
      <td class="nd_center-cell">[% row.active | format_number %]</td>
 | 
						|
      <td class="nd_center-cell">[% row.percent | html_entity %]</td>
 | 
						|
    </tr>
 | 
						|
    [% END %]
 | 
						|
  </tbody>
 | 
						|
</table>
 | 
						|
 | 
						|
<script>
 | 
						|
$(document).ready(function() {
 | 
						|
  $('#data-table').dataTable({
 | 
						|
    "processing": true,
 | 
						|
    "stateSave": true,
 | 
						|
    "pageLength": 25,
 | 
						|
    "language": {
 | 
						|
      "search": 'Filter records: '
 | 
						|
    },
 | 
						|
    "order": [[ 3, 'desc' ]],
 | 
						|
  } );
 | 
						|
} );
 | 
						|
</script>
 | 
						|
 |