X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_domain.cgi;h=a9fc775ee6f8b30da1b7e7be9120840c94a4d364;hb=d0221fabd4656b3a04251ca6168cc45f54d23574;hp=ff336f39443bd98b5f45ba45eec5341986053341;hpb=80206c4958e70b809ff1205a0d8322b5ca2d7fa8;p=freeside.git
diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi
index ff336f394..a9fc775ee 100755
--- a/httemplate/view/svc_domain.cgi
+++ b/httemplate/view/svc_domain.cgi
@@ -1,52 +1,41 @@
-
-%
-%
-%my($query) = $cgi->keywords;
-%$query =~ /^(\d+)$/;
-%my $svcnum = $1;
-%my $svc_domain = qsearchs('svc_domain',{'svcnum'=>$svcnum});
-%die "Unknown svcnum" unless $svc_domain;
-%
-%my $cust_svc = qsearchs('cust_svc',{'svcnum'=>$svcnum});
-%my $pkgnum = $cust_svc->getfield('pkgnum');
-%my($cust_pkg, $custnum);
-%if ($pkgnum) {
-% $cust_pkg=qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});
-% $custnum=$cust_pkg->getfield('custnum');
-%} else {
-% $cust_pkg = '';
-% $custnum = '';
-%}
-%
-%my $part_svc = qsearchs('part_svc',{'svcpart'=> $cust_svc->svcpart } );
-%die "Unknown svcpart" unless $part_svc;
-%
-%my $email = '';
-%if ($svc_domain->catchall) {
-% my $svc_acct = qsearchs('svc_acct',{'svcnum'=> $svc_domain->catchall } );
-% die "Unknown svcpart" unless $svc_acct;
-% $email = $svc_acct->email;
-%}
-%
-%my $domain = $svc_domain->domain;
-%
-%
-
-
<% include("/elements/header.html",'Domain View', menubar(
( ( $pkgnum || $custnum )
- ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
+ ? ( "View this customer (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum",
)
: ( "Delete this (unaudited) domain" =>
"javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum', 'Delete $domain and all records?' )" )
- ),
- "Main menu" => $p,
+ )
)) %>
+<% include('/elements/error.html') %>
+
Service #<% $svcnum %>
Service: <% $part_svc->svc %>
Domain name: <% $domain %>
-
Catch all email (change):
+% if ($export) {
+
Status: <% $status %>
+% if ( $FS::CurrentUser::CurrentUser->access_right('Manage domain registration') ) {
+% if ( defined($ops{'register'}) ) {
+ Register at <% $registrar->{'name'} %>
+% }
+% if ( defined($ops{'transfer'}) ) {
+ Transfer to <% $registrar->{'name'} %>
+% }
+% if ( defined($ops{'renew'}) ) {
+ Renew at <% $registrar->{'name'} %>
+% }
+% if ( defined($ops{'revoke'}) ) {
+ Revoke
+% }
+% }
+% }
+
+% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain catchall') ) {
+
Catch all email (change):
+% } else {
+
Catch all email:
+% }
+
<% $email ? "$email" : "(none)" %>
View whois information.
@@ -85,8 +74,11 @@ Service #<% $svcnum %>