X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_domain.cgi;h=a58d75ed6638d56917b956dedf3b9af7afe7e9ab;hb=f9938915b0df2609f41c24d761d607595d5d0a34;hp=7fdce37dfe6eee4af974737df2f5415d56e210b5;hpb=17856ff5c299e4db21da28116f2666655c03f2c7;p=freeside.git diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 7fdce37df..a58d75ed6 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -4,14 +4,19 @@ ) : ( "Delete this (unaudited) domain" => "javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum', 'Delete $domain and all records?' )" ) - ), - "Main menu" => $p, + ) )) %> Service #<% $svcnum %>
Service: <% $part_svc->svc %>
Domain name: <% $domain %> -
Catch all email (change): +
Catch all email +% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain catchall') ) { +
Catch all email(change): +} else { +
Catch all email: +% } + <% $email ? "$email" : "(none)" %>

View whois information.

@@ -50,8 +55,11 @@ Service #<% $svcnum %> <% $type %> <% $domain_record->recdata %> -% unless ( $domain_record->rectype eq 'SOA' ) { - (delete) +% unless ( $domain_record->rectype eq 'SOA' +% || ! $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') +% ) { +% ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g; + (delete) % } @@ -68,42 +76,50 @@ Service #<% $svcnum %> % } +% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') ) { +
+
+ + + IN + + + +
+ +

+ or +

+ +
+ +% if ( @records ) { + Delete all records and +% } + Slave from nameserver IP + + + + + + +
+ +% } -
-
- - - IN - - -


or

-
- -% if ( @records ) { - Delete all records and -% } +

-Slave from nameserver IP - - - - - -
-

<% joblisting({'svcnum'=>$svcnum}, 1) %> +<% joblisting({'svcnum'=>$svcnum}, 1) %> <% include('/elements/footer.html') %> <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('View customer services') - || $FS::CurrentUser::CurrentUser->access_right('View customer'); #XXX remove me + unless $FS::CurrentUser::CurrentUser->access_right('View customer services'); my($query) = $cgi->keywords; $query =~ /^(\d+)$/;