" %>
-
View whois information.
-
+% if ( $custnum ) {
+
+%# <% include("/elements/header.html","View $svcdomain") %>
+ <% include("/elements/header.html","View domain") %>
+ <% include( '/elements/small_custview.html', $custnum, '', 1,
+ "${p}view/cust_main.cgi") %>
+
+
+% } else {
+
+ <% include("/elements/header.html",'View domain', menubar(
+ "Cancel this (unaudited) domain" =>
+ "javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum', 'Delete $domain and all records?')",
+ ))
+ %>
+
+% }
+
+<% include('/elements/error.html') %>
+
+Service #<% $svcnum %>
+% #if ( $conf->exists('svc_domain-edit_domain') ) {
+ | Edit this domain
+% #}
+
+<% &ntable("#cccccc") %><% &ntable("#cccccc",2) %>
+
+ |
+ Service |
+ <% $part_svc->svc %> |
+
+
+
+ Domain |
+
+ <% $domain %>
+ (view whois information)
+ |
+
+
+% if ($export) {
+
+ Registration 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 ( $communigate ) {
+
+
+ Administrator domain |
+
+% if ( $svc_domain->parent_svcnum ) {
+% #XXX agent-virt aware the link
+ <% $svc_domain->parent_svc_x->domain %>
+% } else {
+ (none)
+% }
+ |
+
+
+
+ Aliases |
+ <% $svc_domain->cgp_aliases %> |
+
+
+% }
+
+% if ( $communigate && $svc_domain->max_accounts ) {
+
+ Maximum number of Accounts |
+ <% $svc_domain->max_accounts %> |
+
+% }
+
+
+ Catch all email |
+ <% $email ? "$email" : '(none)' %>
+% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain catchall') ) {
+ (change)
+% }
+ |
+
+
+
+ Enabled services |
+ <% $svc_domain->cgp_accessmodes %> |
+
+
+
+
+
+
+DNS records
% my @records; if ( @records = $svc_domain->domain_record ) {
- <% ntable("",2) %>
- Zone | Type | Data |
+ <% include('/elements/table-grid.html') %>
+
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = $bgcolor2;
+
+
+ Zone |
+ Type |
+ Data |
+
+
% foreach my $domain_record ( @records ) {
% my $type = $domain_record->rectype eq '_mstr'
% ? "(slave)"
% : $domain_record->recaf. ' '. $domain_record->rectype;
-%
- <% $domain_record->reczone %> |
- <% $type %> |
- <% $domain_record->recdata %>
-% unless ( $domain_record->rectype eq 'SOA' ) {
+ |
+ <% $domain_record->reczone %> |
+ <% $type %> |
+ <% $domain_record->recdata %>
+
+% unless ( $domain_record->rectype eq 'SOA'
+% || ! $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice')
+% ) {
+% ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g;
+ (delete)
+% }
+ |
+
- (delete)
-% }
-
+% if ( $bgcolor eq $bgcolor1 ) {
+% $bgcolor = $bgcolor2;
+% } else {
+% $bgcolor = $bgcolor1;
+% }
+
% }
% }
+% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') ) {
+
+
+
+% }
-
or
-
-
<% joblisting({'svcnum'=>$svcnum}, 1) %>
-