dns updates from Erik L: add ttl support, add check for SRV and finish allowing addit...
[freeside.git] / httemplate / view / svc_domain / dns.html
index 88a9bda..11aba82 100644 (file)
@@ -21,6 +21,7 @@ DNS records
     <th CLASS="grid" BGCOLOR="#cccccc">Zone</th>
     <th CLASS="grid" BGCOLOR="#cccccc">Type</th>
     <th CLASS="grid" BGCOLOR="#cccccc">Data</th>
+    <th CLASS="grid" BGCOLOR="#cccccc">TTL</th>
   </tr>
 
 % foreach my $domain_record ( @records ) {
@@ -32,7 +33,9 @@ DNS records
     <tr>
       <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->reczone %></td>
       <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $type %></td>
-      <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->recdata %>
+      <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->recdata %></td>
+      <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->ttl %></td>
+      <td CLASS="grid" BGCOLOR="<% $bgcolor %>">
 
 % unless ( $domain_record->rectype eq 'SOA'
 %          || ! $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice')
@@ -66,6 +69,7 @@ DNS records
 %       } 
       </SELECT>
       <INPUT TYPE="text" NAME="recdata">
+      <INPUT TYPE="text" NAME="ttl" size="6">
       <INPUT TYPE="submit" VALUE="Add record">
     </FORM>