[freeside-commits] freeside/httemplate/view/svc_domain dns.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Tue Aug 17 10:08:24 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view/svc_domain
In directory wavetail.420.am:/tmp/cvs-serv13795/httemplate/view/svc_domain
Modified Files:
dns.html
Log Message:
DNS, RT#8933
Index: dns.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_domain/dns.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- dns.html 12 Jul 2010 06:19:48 -0000 1.2
+++ dns.html 17 Aug 2010 17:08:22 -0000 1.3
@@ -8,7 +8,12 @@
}
</SCRIPT>
-DNS records
+<div class="fscontainer">
+<div class="fsbox">
+<div class="fsbox-title">
+ <span class="left">DNS Records</span>
+</div>
+
% my @records; if ( @records = $svc_domain->domain_record ) {
<% include('/elements/table-grid.html') %>
@@ -38,6 +43,7 @@
% || ! $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice')
% ) {
% ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g;
+ (<A HREF="<%$p%>edit/domain_record.html?<%$domain_record->recnum%>">edit</A>)
(<A HREF="javascript:areyousure('<%$p%>misc/delete-domain_record.cgi?<%$domain_record->recnum%>', 'Delete \'<% $domain_record->reczone %> <% $type %> <% $recdata %>\' ?' )">delete</A>)
% }
</td>
@@ -53,15 +59,23 @@
% }
</table>
+% } else {
+
+ <FORM METHOD="POST" NAME="DefaultForm" ACTION="<%$p%>edit/process/svc_domain-defaultrecords.cgi">
+ <INPUT TYPE="hidden" NAME="svcnum" VALUE="<%$svcnum%>">
+ <INPUT TYPE="submit" VALUE="Add default records">
+ </FORM>
+
% }
% if ( $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice') ) {
+ <BR>
<FORM METHOD="POST" ACTION="<%$p%>edit/process/domain_record.cgi">
<INPUT TYPE="hidden" NAME="svcnum" VALUE="<%$svcnum%>">
<INPUT TYPE="text" NAME="reczone">
<INPUT TYPE="hidden" NAME="recaf" VALUE="IN"> IN
<SELECT NAME="rectype">
-% foreach (qw( A NS CNAME MX PTR TXT) ) {
+% foreach ( @{ FS::domain_record->rectypes } ) {
<OPTION VALUE="<%$_%>"><%$_%></OPTION>
% }
</SELECT>
@@ -69,6 +83,7 @@
<INPUT TYPE="submit" VALUE="Add record">
</FORM>
+ <BR>
<FORM NAME="SlaveForm" METHOD="POST" ACTION="<%$p%>edit/process/domain_record.cgi">
<INPUT TYPE="hidden" NAME="svcnum" VALUE="<%$svcnum%>">
Or
@@ -86,6 +101,8 @@
% }
+</div>
+</div>
<%init>
my($svc_domain, %opt) = @_;
More information about the freeside-commits
mailing list