summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_device.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/browse/part_device.html')
-rw-r--r--httemplate/browse/part_device.html10
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,
+ '',
],
)
%>