diff options
| author | levinse <levinse> | 2011-01-22 20:03:52 +0000 |
|---|---|---|
| committer | levinse <levinse> | 2011-01-22 20:03:52 +0000 |
| commit | 61fbcfa109b5cc8e0eeff08fcd086164ee640904 (patch) | |
| tree | 61aef90f3e015200f910665ed523fde42d2eccbe /httemplate/browse/part_device.html | |
| parent | 8f12b9fe1d7370c7307f183b0dff1e061c047ac5 (diff) | |
populate MAC address from inventory for svc_phone devices, RT7794
Diffstat (limited to 'httemplate/browse/part_device.html')
| -rw-r--r-- | httemplate/browse/part_device.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/browse/part_device.html b/httemplate/browse/part_device.html index 5c8fde339..69387dd16 100644 --- a/httemplate/browse/part_device.html +++ b/httemplate/browse/part_device.html @@ -8,12 +8,20 @@ ], 'query' => { 'table' => 'part_device', }, 'count_query' => 'SELECT COUNT(*) FROM part_device', - 'header' => [ '#', 'Device type' ], + 'header' => [ '#', 'Device type', 'Inventory Class', ], 'fields' => [ 'devicepart', 'devicename', + sub { + my $part_device = shift; + my $inventory_class = $part_device->inventory_class; + return $inventory_class->classname + if $inventory_class; + ''; + }, ], 'links' => [ $link, $link, + '', ], ) %> |
