default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / browse / part_device.html
index 5c8fde3..12c19ed 100644 (file)
@@ -8,12 +8,25 @@
                                   ],
                  'query'       => { 'table' => 'part_device', },
                  'count_query' => 'SELECT COUNT(*) FROM part_device',
-                 'header'      => [ '#', 'Device type' ],
+                 'header'      => [ '#',
+                                    'Device type',
+                                    'Inventory Class',
+                                    'External name', ],
                  'fields'      => [ 'devicepart',
                                     'devicename',
+                                   sub {
+                                       my $part_device = shift;
+                                       my $inventory_class = $part_device->inventory_class;
+                                       return $inventory_class->classname 
+                                           if $inventory_class;
+                                       '';
+                                   },
+                                    'title',
                                   ],
                  'links'       => [ $link,
                                     $link,
+                                   '',
+                                    '',
                                   ],
              )
 %>