X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_domain%2Fdns.html;h=82cab068a4648c0ace68a10317cefff39c4f7e18;hp=f6f8c71c71f61c405d393cdb37c0d2de127c6472;hb=fa7e044b2829a4e913c8094c7e8c59146a055efc;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/httemplate/view/svc_domain/dns.html b/httemplate/view/svc_domain/dns.html index f6f8c71c7..82cab068a 100644 --- a/httemplate/view/svc_domain/dns.html +++ b/httemplate/view/svc_domain/dns.html @@ -8,7 +8,12 @@ } -DNS records +
+
+
+ DNS Records +
+ % my @records; if ( @records = $svc_domain->domain_record ) { <% include('/elements/table-grid.html') %> @@ -21,6 +26,7 @@ DNS records Zone Type Data + TTL % foreach my $domain_record ( @records ) { @@ -32,12 +38,15 @@ DNS records <% $domain_record->reczone %> <% $type %> - <% $domain_record->recdata %> + <% $domain_record->recdata %> + <% $domain_record->ttl %> + % unless ( $domain_record->rectype eq 'SOA' % || ! $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') % ) { % ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g; + (edit) (delete) % } @@ -53,28 +62,59 @@ DNS records % } -% } +% } else { + +
+ + +
+ +% } % if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') ) { +
- - IN - - - + + + + + + + + + +
+
+ Zone +
+ IN + +
+ Type +
+
+ Data +
+
+ TTL +
+ +
+
+ Or % if ( @records ) { - Delete all records and + delete all records and % } - Or slave from nameserver IP + slave from nameserver IP @@ -85,6 +125,8 @@ DNS records % } +
+
<%init> my($svc_domain, %opt) = @_;