diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-12-11 14:58:40 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-12-11 14:58:40 -0800 |
commit | d4e7a23cc00ce65a85c824efbaf569199c40299b (patch) | |
tree | 4f74bf84a6c3e4edd5fcd94b0a5b8827e09450a0 /httemplate/view | |
parent | 771afd921a4a9c2b0358663774d1d5ce0a499cc8 (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.html | 8 | ||||
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 4 | ||||
-rw-r--r-- | httemplate/view/svc_broadband.cgi | 7 |
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> |