X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_acct.cgi;h=441e4945da85af80f104f9bc47a608fc9ac15ab8;hb=48a5fc446d9855a513ce5845e5be67801a6d7c92;hp=4e82569fc21b41e9240fba99ab60e4b21cec5632;hpb=1318909d7eb16d736cbfb9f641eecccb00d4636c;p=freeside.git
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index 4e82569fc..441e4945d 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -1,71 +1,66 @@
% if ( $custnum ) {
- <% include("/elements/header.html","View $svc account") %>
- <% include( '/elements/small_custview.html', $custnum, '', 1,
- "${p}view/cust_main.cgi") %>
+ <& /elements/header.html, mt("View [_1] account",$svc) &>
+ <& /elements/small_custview.html, $custnum, '', 1,
+ "${p}view/cust_main.cgi" &>
% } else {
+% my $delmsg = emt('Permanently delete this account?');
- <% include("/elements/header.html",'View account', menubar(
- "Cancel this (unaudited) account" =>
+ <& /elements/header.html, mt('View account'), menubar(
+ emt("Cancel this (unaudited) account") =>
"javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')",
- )) %>
+ ) &>
% }
-<% include( 'svc_acct/radius_usage.html',
+<& svc_acct/radius_usage.html,
'svc_acct' => $svc_acct,
'part_svc' => $part_svc,
'cust_pkg' => $cust_pkg,
%gopt,
- )
-%>
+&>
-<% include( 'svc_acct/change_svc_form.html',
+<& svc_acct/change_svc_form.html,
'part_svc' => \@part_svc,
'svcnum' => $svcnum,
'pkgnum' => $pkgnum,
%gopt,
- )
-%>
+&>
-Service #<% $svcnum %>
-| Edit this service
-
-<% include( 'svc_acct/change_svc.html',
+<% mt('Service #') |h %><% $svcnum %>
+|
+<& /view/elements/svc_edit_link.html, 'svc' => $svc_acct &>
+<& svc_acct/change_svc.html,
'part_svc' => \@part_svc,
%gopt,
- )
-%>
+&>
-<% include( 'svc_acct/basics.html',
+<& svc_acct/basics.html,
'svc_acct' => $svc_acct,
'part_svc' => $part_svc,
%gopt,
- )
-%>
+&>
-<% include( 'svc_acct/cardfortress.html',
+<& svc_acct/cardfortress.html,
'svc_acct' => $svc_acct,
%gopt,
- )
-%>
+&>
-<% include( 'svc_acct/hosting.html',
+<& svc_acct/hosting.html,
%gopt,
- )
-%>
+&>
%#remove this? does anybody even use it? it was a misunderstood customer
%#request IIRC?
@@ -76,11 +71,13 @@ Service #<% $svcnum %>
% }
-<% include('elements/svc_export_settings.html', $svc_acct) %>
+<& elements/svc_export_status.html, $svc_acct &>
+
+<& elements/svc_export_settings.html, $svc_acct &>
<% joblisting({'svcnum'=>$svcnum}, 1) %>
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
<%init>
die "access denied"
@@ -105,7 +102,7 @@ my $svc_acct = qsearchs({
die "Unknown svcnum" unless $svc_acct;
#false laziness w/all svc_*.cgi
-my $cust_svc = qsearchs( 'cust_svc' , { 'svcnum' => $svcnum } );
+my $cust_svc = $svc_acct->cust_svc;
my $pkgnum = $cust_svc->getfield('pkgnum');
my($cust_pkg, $custnum);
if ($pkgnum) {