From fc2bc78541d1c8c0f1f0570b55e41ac032d03e65 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 19 Dec 2011 01:59:15 +0000 Subject: tower for svc_acct, RT#15538 --- httemplate/edit/svc_acct.cgi | 13 +++++++++++++ httemplate/view/svc_acct/basics.html | 11 +++++++++++ 2 files changed, 24 insertions(+) (limited to 'httemplate') diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 52fbd37af..38567ef67 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -160,6 +160,19 @@ function randomPass() { <% FS::svc_acct_pop::popselector($popnum) %> % } + +%#tower (huh) +%if ( $conf->exists('svc_acct-tower_sector') +% && $part_svc->part_svc_column('sectornum')->columnflag ne 'F' ) { + <& /elements/tr-select-tower_sector.html, + 'curr_value' => $svc_acct->sectornum, + #'part_svc' => $part_svc, + #'cust_pkg' => $cust_pkg, + &> +%} else { + +%} + % #uid/gid % foreach my $xid (qw( uid gid )) { % diff --git a/httemplate/view/svc_acct/basics.html b/httemplate/view/svc_acct/basics.html index 6adebc6ce..8f180b648 100644 --- a/httemplate/view/svc_acct/basics.html +++ b/httemplate/view/svc_acct/basics.html @@ -42,6 +42,17 @@ <& /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 +% ? '' +% : ''; + <& /view/elements/tr.html, + label => mt('Tower sector'), + value => $link. $tower_sector->description. ($link ? '' : ''), + &> +% } + % if ($svc_acct->uid ne '') { <& /view/elements/tr.html, label=>mt('UID'), value=>$svc_acct->uid &> % } -- cgit v1.2.1