From f3ac48703be75c0e2aec161487057eafeb8fc74f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 24 Jan 2014 00:39:40 -0800 Subject: svc_pbx devices, for RT#24968 --- httemplate/view/elements/svc_devices.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'httemplate/view/elements') diff --git a/httemplate/view/elements/svc_devices.html b/httemplate/view/elements/svc_devices.html index 9458c922c..c9f5eda78 100644 --- a/httemplate/view/elements/svc_devices.html +++ b/httemplate/view/elements/svc_devices.html @@ -15,7 +15,7 @@ %if ( @devices || $num_part_device || $table eq 'dsl_device' ) { % my $svcnum = $svc_x->svcnum; - Devices + Devices (Add device)
@@ -30,7 +30,7 @@ <& /elements/table-grid.html &> -% if ( $table eq 'phone_device' || $table eq 'cable_device' ) { +% if ( $table ne 'dsl_device' ) { # ( $table eq 'phone_device' || $table eq 'cable_device' || $table eq 'pbx_device' ) { Type % } MAC Addr @@ -62,7 +62,7 @@ % if ( $table eq 'phone_device' || $svc_x->isa('FS::device_Common') ) { <% $td %><% $device->part_device->devicename |h %> % } - <% $td %><% $device->mac_addr %> + <% $td %><% $device->mac_addr_pretty %> <% $td %><% $export_links %> <% $td %>( % unless ( $opt{'no_edit'} ) { @@ -85,7 +85,7 @@ my $table = $opt{'table'}; #part_device, dsl_device my $svc_x = $opt{'svc_x'}; my $num_part_device = 0; -if ( $table eq 'phone_device' || $table eq 'cable_device' ) { +if ( $table ne 'dsl_device' ) { # ( $table eq 'phone_device' || $table eq 'cable_device' || $table eq 'pbx_device' ) { my $sth = dbh->prepare("SELECT COUNT(*) FROM part_device") #WHERE disabled = '' OR disabled IS NULL;"); or die dbh->errstr; -- cgit v1.2.1