X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_domain%2Fdns.html;h=184286c31581af7babf2a3aae12c42676ff81ff1;hp=88a9bda959e7979c34ce2feb5400ed5271266584;hb=HEAD;hpb=7c251ddb828f7c2eb0453604477027a84c599a5c diff --git a/httemplate/view/svc_domain/dns.html b/httemplate/view/svc_domain/dns.html index 88a9bda95..184286c31 100644 --- a/httemplate/view/svc_domain/dns.html +++ b/httemplate/view/svc_domain/dns.html @@ -7,22 +7,30 @@ return confirm("Remove all records and slave from " + document.SlaveForm.recdata.value + "?"); } +<% include('/elements/init_overlib.html') %> -DNS records -% my @records; if ( @records = $svc_domain->domain_record ) { + +
+
+
+ DNS Records +
- <% include('/elements/table-grid.html') %> +<% include('/elements/table-grid.html') %> % my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = $bgcolor2; +% my $bgcolor2 = '#ffffff'; +% my $bgcolor = $bgcolor2; Zone Type Data + TTL + +% my @records = $svc_domain->domain_record; % foreach my $domain_record ( @records ) { % my $type = $domain_record->rectype eq '_mstr' % ? "(slave)" @@ -32,13 +40,27 @@ 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 $edit_link = include('/elements/popup_link.html', +% 'label' => 'edit', +% 'action' => $p.'edit/domain_record.html?recnum='. +% $domain_record->recnum, +% 'actionlabel' => 'Edit nameservice record', +% 'width' => 655, +% 'height' => 176, +% #'color' => '#ff0000', +% ); % ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g; - (delete) +% my $delete_url= "javascript:areyousure('${p}misc/delete-domain_record.cgi?". +% $domain_record->recnum. "', 'Delete ". +% $domain_record->reczone. " $type $recdata ?' )"; + <%$edit_link%> | delete % } @@ -52,23 +74,51 @@ DNS records % } - -% } +% if ( ! @records ) { + +
+ + + + + + +
+ +% } % if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') ) {
- - - IN - - - + + + +
+ Zone + + + +
+ Type + + +
+ Data + + +
+ TTL + + + + +
+
Or @@ -83,9 +133,14 @@ DNS records
+

% } + + +
+
<%init> my($svc_domain, %opt) = @_;