source: trunk/templates/axfr.tmpl@ 490

Last change on this file since 490 was 436, checked in by Kris Deugau, 12 years ago

/trunk

Fix bug in AXFR import (couldn't import as inactive)
Extend AXFR import to allow overriding TTLs. Note this is all-or-nothing.

File size: 2.7 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" method="post">
8<fieldset>
9<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
10<input type="hidden" name="page" value="axfr" />
11<input type="hidden" name="doit" value="y" />
12
13<table>
14<TMPL_IF errmsg><tr><td class="errhead" colspan="2">Error: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
15<tr class="tableheader"><td align="center" colspan="2">Import domains via AXFR</td></tr>
16<tr class="datalinelight">
17 <td>Import from host:</td>
18 <td><input name="ifrom"<TMPL_IF ifrom> value="<TMPL_VAR NAME=ifrom>"</TMPL_IF> /></td>
19</tr>
20<tr class="datalinelight">
21 <td>Import to group:</td>
22 <td>
23 <select name="group">
24 <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
25 </TMPL_LOOP></select>
26 </td>
27</tr>
28<tr class="datalinelight">
29 <td>Rewrite SOA to group default?</td>
30 <td><input type="checkbox" name="rwsoa"<TMPL_IF rwsoa> checked="checked"</TMPL_IF> /></td>
31</tr>
32<tr class="datalinelight">
33 <td>Rewrite NS to group default?</td>
34 <td><input type="checkbox" name="rwns"<TMPL_IF rwns> checked="checked"</TMPL_IF> /></td>
35</tr>
36<tr class="datalinelight">
37 <td>Force all TTLs to new value?</td>
38 <td><input type="checkbox" name="forcettl"<TMPL_IF forcettl> checked="checked"</TMPL_IF> /><input name="newttl" size="7"<TMPL_IF newttl> value="<TMPL_VAR NAME=newttl>"</TMPL_IF> /></td>
39</tr>
40<tr class="datalinelight">
41 <td>Merge records on A+PTR or AAAA+PTR match?</td>
42 <td><input type="checkbox" name="mergematching"<TMPL_IF mergematching> checked="checked"</TMPL_IF> /></td>
43</tr>
44<tr class="datalinelight">
45 <td>Import as active?</td>
46 <td><input type="checkbox" name="domactive"<TMPL_UNLESS dominactive> checked="checked"</TMPL_UNLESS> /></td>
47</tr>
48<tr class="datalinelight">
49 <td valign="top">Domains to import:<br />(one per line)</td>
50 <td><textarea name="importdoms" rows="10" cols="45"><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td>
51</tr>
52<tr class="datalinelight">
53 <td colspan="2" align="center"><input type="submit" value=" Import domains " /></td>
54</tr>
55</table>
56
57</fieldset>
58</form>
59
60<TMPL_IF axfrresults>
61<br />
62<table>
63<tr class="tableheader"><td colspan="2">AXFR Import Results</td></tr>
64<TMPL_LOOP NAME=axfrresults>
65<tr class="datalinelight">
66 <td><TMPL_VAR NAME=domain></td>
67<TMPL_IF domok> <td>Imported OK</td>
68<TMPL_ELSE><TMPL_IF domwarn> <td class="warn">Import OK but:<br />
69<TMPL_VAR NAME=domwarn></td>
70<TMPL_ELSE> <td class="err">Failed: <TMPL_VAR NAME=domerr></td>
71</TMPL_IF></TMPL_IF>
72</tr>
73</TMPL_LOOP>
74</table>
75</TMPL_IF>
76
77</td>
78</tr>
79</table>
Note: See TracBrowser for help on using the repository browser.