summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-12-11 14:58:41 -0800
committerIvan Kohler <ivan@freeside.biz>2013-12-11 14:58:41 -0800
commit69b9ec92ace98d089e79bfd9d30aaec410c477ec (patch)
tree8a4c71706970d664f4c5f16029ce990bdc0ace22 /httemplate/view
parent752d0f7d77526da342525dfa57bf961af7bb96fa (diff)
RADIUS usage for svc_broadband: show on service view, RT#26451
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/elements/svc_Common.html8
-rwxr-xr-xhttemplate/view/svc_acct.cgi4
-rw-r--r--httemplate/view/svc_broadband.cgi7
3 files changed, 14 insertions, 5 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html
index bc1cd45fc..d34ed509a 100644
--- a/httemplate/view/elements/svc_Common.html
+++ b/httemplate/view/elements/svc_Common.html
@@ -50,6 +50,14 @@ function areyousure(href) {
% }
+% if ( $opt{radius_usage} ) {
+ <& svc_radius_usage.html,
+ 'svc' => $svc_x,
+ 'part_svc' => $part_svc,
+ 'cust_pkg' => $cust_pkg,
+ &>
+% }
+
<% mt('Service #') |h %><B><% $svcnum %></B>
% if ( $custnum ) {
% my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?';
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index 858ccbe67..747477989 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -23,8 +23,8 @@
% }
-<& svc_acct/radius_usage.html,
- 'svc_acct' => $svc_acct,
+<& elements/svc_radius_usage.html,
+ 'svc' => $svc_acct,
'part_svc' => $part_svc,
'cust_pkg' => $cust_pkg,
%gopt,
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi
index 7d6520e57..3325416b8 100644
--- a/httemplate/view/svc_broadband.cgi
+++ b/httemplate/view/svc_broadband.cgi
@@ -1,8 +1,9 @@
<& elements/svc_Common.html,
- table => 'svc_broadband',
- labels => \%labels,
- fields => \@fields,
+ table => 'svc_broadband',
+ labels => \%labels,
+ fields => \@fields,
svc_callback => \&svc_callback,
+ radius_usage => 1,
&>
<%init>