source: trunk/templates/newrevzone.tmpl@ 266

Last change on this file since 266 was 260, checked in by Kris Deugau, 13 years ago

/trunk

First pass adding add-reverse-zone.

  • add newrdns/addrdns templates
  • add handling in dns.cgi for pages, copy-paste-modify'ed from add-domain
  • add addRDNS() in DNSDB.pm, copy-paste-modify'ed from addDomain()

addRDNS() still needs extension at the ##work to properly substitute
ZONE in hostname and value fields as well as pick and choose default
records (ie, skip A+PTR in v6 zones, and skip AAAA+PTR in v4 zones)
See #26

File size: 1.6 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center" valign="top">
6
7<form action="dns.cgi">
8<fieldset>
9
10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
11<input type="hidden" name="page" value="addrevzone" />
12<input type="hidden" name="newrevzone" value="yes" />
13
14<table class="container" width="450">
15<tr><td>
16 <table border="0" cellspacing="2" cellpadding="2" width="100%">
17<TMPL_IF add_failed> <tr><td class="errhead" colspan="2">Error adding reverse zone <TMPL_VAR NAME=revzone>:
18<TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
19 <tr class="darkrowheader"><td colspan="2" align="center">Add Reverse Zone</td></tr>
20
21 <tr class="datalinelight">
22 <td>CIDR network or reverse zone name:</td>
23 <td align="left"><input type="text" name="revzone" value="<TMPL_VAR NAME=revzone>" /></td>
24 </tr>
25 <tr class="datalinelight">
26 <td>Default reverse hostname pattern:</td>
27 <td align="left"><input type="text" name="revpatt" value="<TMPL_VAR NAME=revpatt>" /></td>
28 </tr>
29 <tr class="datalinelight">
30 <td>Add reverse zone to group:</td>
31 <td><select name="group">
32<TMPL_LOOP name=grouplist> <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
33</TMPL_LOOP>
34 </select></td>
35 </tr>
36 <tr class="datalinelight">
37 <td>Make reverse zone active on next DNS propagation</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
38 </tr>
39 <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add reverse zone" /></td></tr>
40 </table>
41 </td>
42</tr>
43</table>
44
45</fieldset>
46</form>
47
48</td></tr>
49</table>
Note: See TracBrowser for help on using the repository browser.