DataTables for device by location report

This commit is contained in:
Eric A. Miller
2014-05-24 09:05:29 -04:00
parent 17c60afce8
commit 5e13d642a1
3 changed files with 55 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
[% USE CSV -%]
[% CSV.dump([ 'Location' 'Device' 'System Name' 'Vendor' 'Model' ]) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% device = row.dns || row.ip %]
[% FOREACH col IN [ row.location device row.name row.vendor row.model ] %]