<& /view/elements/tr.html, label=>mt('Access number'), value=>$svc_acct_pop->text &>
% }
+% if ( $svc_acct->sectornum && $conf->exists('svc_acct-tower_sector') ) {
+% my $tower_sector = $svc_acct->tower_sector;
+% my $link = $tower_sector->ip_addr
+% ? '<A HREF="http://'. $tower_sector->ip_addr. '">'
+% : '';
+ <& /view/elements/tr.html,
+ label => mt('Tower sector'),
+ value => $link. $tower_sector->description. ($link ? '</A>' : ''),
+ &>
+% }
+
% if ($svc_acct->uid ne '') {
<& /view/elements/tr.html, label=>mt('UID'), value=>$svc_acct->uid &>
% }
label=>mt('IP address'),
value=> ( $svc_acct->slipip eq "0.0.0.0" || $svc_acct->slipip eq '0e0' )
? "<I>(".mt('Dynamic').")</I>"
- : $svc_acct->slipip
+ : $svc_acct->slipip. ' '.
+ include('/elements/popup_link-ping.html',
+ 'ip'=>$svc_acct->slipip,
+ )
&>
% }
% }
<& /view/elements/tr.html, label=>mt('RADIUS groups'),
- value=>join('<BR>', $svc_acct->radius_groups) &>
+ value=>join('<BR>', $svc_acct->radius_groups('long_description')) &>
%# Can this be abstracted further? Maybe a library function like
%# widget('HTML', 'view', $svc_acct) ? It would definitely make UI