[freeside-commits] freeside/httemplate/browse part_device.html, 1.1, 1.2
Erik Levinson
levinse at wavetail.420.am
Sat Jan 22 12:03:52 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv30702/httemplate/browse
Modified Files:
part_device.html
Log Message:
populate MAC address from inventory for svc_phone devices, RT7794
Index: part_device.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_device.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- part_device.html 30 Jun 2009 01:42:55 -0000 1.1
+++ part_device.html 22 Jan 2011 20:03:50 -0000 1.2
@@ -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,
+ '',
],
)
%>
More information about the freeside-commits
mailing list