X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_broadband.cgi;h=ae23386a18b56525c99f35ee307bf3f624b36122;hb=aa2daf29c5bb13a3728b434159afc4065367af91;hp=156edfaec4610642e82c6232a25d38a15adf7a97;hpb=44398c83f25bf4e43838df9f39331c29fdeff19d;p=freeside.git
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi
index 156edfaec..ae23386a1 100644
--- a/httemplate/view/svc_broadband.cgi
+++ b/httemplate/view/svc_broadband.cgi
@@ -20,56 +20,123 @@ if ($pkgnum) {
}
#eofalse
-my $ac = qsearchs('ac', { acnum => $svc_broadband->getfield('acnum') });
+my $router = $svc_broadband->addr_block->router;
+
+if (not $router) { die "Could not lookup router for svc_broadband (svcnum $svcnum)" };
my (
- $acname,
- $acnum,
+ $routername,
+ $routernum,
$speed_down,
$speed_up,
- $ip_addr,
- $ip_netmask,
- $mac_addr,
- $location
+ $ip_addr
) = (
- $ac->getfield('acname'),
- $ac->getfield('acnum'),
+ $router->getfield('routername'),
+ $router->getfield('routernum'),
$svc_broadband->getfield('speed_down'),
$svc_broadband->getfield('speed_up'),
- $svc_broadband->getfield('ip_addr'),
- $svc_broadband->getfield('ip_netmask'),
- $svc_broadband->getfield('mac_addr'),
- $svc_broadband->getfield('location')
+ $svc_broadband->getfield('ip_addr')
);
+%>
-print header('Broadband Service View', menubar(
+<%=header('Broadband Service View', menubar(
( ( $custnum )
- ? ( "View this package (#$pkgnum)" => "${p}view/cust_pkg.cgi?$pkgnum",
- "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
+ ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
)
: ( "Cancel this (unaudited) website" =>
"${p}misc/cancel-unaudited.cgi?$svcnum" )
),
"Main menu" => $p,
-)).
- qq!Edit this information
!.
- ntable("#cccccc"). '
$location