add locale to customer editable fields, initialize ticket system on startup, customer...
[freeside.git] / httemplate / edit / domain_record.html
1 <% include('/elements/header-popup.html', 'Edit nameservice record') %>
2
3 <% include('/elements/error.html') %>
4
5 <FORM METHOD="POST" ACTION="process/domain_record.cgi">
6
7 <INPUT TYPE="hidden" NAME="recnum" VALUE="<% $opt{'recnum'} %>">
8
9 <% ntable("#cccccc", 2) %>
10
11     <tr>
12       <td>
13         <INPUT TYPE="text" NAME="reczone" VALUE="<% $domain_record->reczone %>">
14         <BR>
15         <FONT SIZE="-1"><I>Zone</I></FONT>
16       </TD>
17       <TD>
18         <INPUT TYPE="hidden" NAME="recaf" VALUE="IN">
19           <SELECT NAME="rectype">
20 %           foreach ( @{ FS::domain_record->rectypes } ) { 
21               <OPTION VALUE="<%$_%>"
22                       <% $_ eq $domain_record->rectype ? 'SELECTED' : '' %>
23               >IN <%$_%></OPTION>
24 %           } 
25           </SELECT><BR>
26           <FONT SIZE="-1"><I>Type</I></FONT>
27       </TD>
28       <TD>
29         <INPUT TYPE="text" NAME="recdata" VALUE="<% $domain_record->recdata |h %>">
30         <BR>
31         <FONT SIZE="-1"><I>Data</I></FONT>
32       </TD>
33       <TD>
34         <INPUT TYPE="text" NAME="ttl" size="6" VALUE="<% $domain_record->ttl %>">
35         <BR>
36         <FONT SIZE="-1"><I>TTL</I></FONT>
37       </TD>
38
39 </TABLE>
40
41 <BR>
42 <INPUT TYPE="submit" VALUE="Edit record">
43
44 </FORM>
45
46 <%init>
47
48 my %opt = @_;
49
50 my $domain_record = qsearchs('domain_record', { 'recnum' => $opt{'recnum'} } )
51   or die "unknown recnum";
52
53 </%init>