summaryrefslogtreecommitdiff
path: root/httemplate/edit/domain_record.html
blob: 3ea6c77da5f67ee8fff8b1623584142d04f2cbeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<% include('/elements/header-popup.html', 'Edit nameservice record') %>

<% include('/elements/error.html') %>

<FORM METHOD="POST" ACTION="process/domain_record.cgi">

<INPUT TYPE="hidden" NAME="recnum" VALUE="<% $opt{'recnum'} %>">

<% ntable("#cccccc", 2) %>

    <tr>
      <td>
        <INPUT TYPE="text" NAME="reczone" VALUE="<% $domain_record->reczone %>">
        <BR>
        <FONT SIZE="-1"><I>Zone</I></FONT>
      </TD>
      <TD>
        <INPUT TYPE="hidden" NAME="recaf" VALUE="IN">
          <SELECT NAME="rectype">
%           foreach ( @{ FS::domain_record->rectypes } ) { 
              <OPTION VALUE="<%$_%>"
                      <% $_ eq $domain_record->rectype ? 'SELECTED' : '' %>
              >IN <%$_%></OPTION>
%           } 
          </SELECT><BR>
          <FONT SIZE="-1"><I>Type</I></FONT>
      </TD>
      <TD>
        <INPUT TYPE="text" NAME="recdata" VALUE="<% $domain_record->recdata |h %>">
        <BR>
        <FONT SIZE="-1"><I>Data</I></FONT>
      </TD>
      <TD>
        <INPUT TYPE="text" NAME="ttl" size="6" VALUE="<% $domain_record->ttl %>">
        <BR>
        <FONT SIZE="-1"><I>TTL</I></FONT>
      </TD>

</TABLE>

<BR>
<INPUT TYPE="submit" VALUE="Edit record">

</FORM>

<%init>

my %opt = @_;

my $domain_record = qsearchs('domain_record', { 'recnum' => $opt{'recnum'} } )
  or die "unknown recnum";

</%init>