source: trunk/templates/editsoa.tmpl@ 449

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

/trunk

Move SQL for SOA update to DNSDB.pm (see #1)
Clean up support for reverse zones (see #26)
Move action logging for SOA updates to DNSDB.pm (see #35)

Includes log/info message consistency cleanups, dropping stale
commented code, dropping if(0)'ed code, tweaks to fillsoa() to
retain user changes on errors, updates to getSOA() for consistency,
removal of a stale form input

File size: 2.4 KB
RevLine 
[2]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[100]5<td align="center" valign="top">
[39]6
[2]7<TMPL_IF update_failed><div class="errmsg">Error updating SOA record: <TMPL_VAR NAME=msg></div></TMPL_IF>
[39]8
[100]9<div>Edit SOA</div>
[39]10
[2]11<div id="tableholder">
[39]12
13<form action="dns.cgi" method="post">
14<fieldset>
15<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
16<input type="hidden" name="page" value="updatesoa" />
17<input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
18<input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
[277]19<input type="hidden" name="revrec" value="<TMPL_VAR NAME=revrec>" />
[39]20
21<table border="0" cellspacing="2" cellpadding="1" width="100%">
[2]22<tr class="darkrowheader">
[39]23 <td colspan="2" class="title"><TMPL_IF NAME=isgrp>Edit default SOA record for group <TMPL_ELSE>Edit SOA record for </TMPL_IF><TMPL_VAR NAME=parent></td>
[277]24 <td class="title">System defaults:</td>
[2]25</tr>
26<tr class="datalinelight">
27 <td class="inputlabel">Primary Name Server</td>
[39]28 <td><input name="prins" value="<TMPL_VAR NAME=prins>" /></td>
[2]29 <td class="data"><TMPL_VAR NAME=defns></td>
30</tr>
31<tr class="datalinelight">
32 <td class="inputlabel">Contact Address</td>
[39]33 <td><input name="contact" value="<TMPL_VAR NAME=contact>" /></td>
[2]34 <td class="data"><TMPL_VAR NAME=defcontact></td>
35</tr>
36<tr class="datalinelight">
37 <td class="inputlabel">SOA TTL</td>
[39]38 <td><input name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
[2]39 <td class="data"><TMPL_VAR NAME=defsoattl></td>
40</tr>
41<tr class="datalinelight">
42 <td class="inputlabel">Refresh</td>
[39]43 <td><input name="refresh" value="<TMPL_VAR NAME=refresh>" /></td>
[2]44 <td class="data"><TMPL_VAR NAME=defrefresh></td>
45</tr>
46<tr class="datalinelight">
47 <td class="inputlabel">Retry</td>
[39]48 <td><input name="retry" value="<TMPL_VAR NAME=retry>" /></td>
[2]49 <td class="data"><TMPL_VAR NAME=defretry></td>
50</tr>
51<tr class="datalinelight">
52 <td class="inputlabel">Expire</td>
[39]53 <td><input name="expire" value="<TMPL_VAR NAME=expire>" /></td>
[2]54 <td class="data"><TMPL_VAR NAME=defexpire></td>
55</tr>
56<tr class="datalinelight">
57 <td class="inputlabel">Minimum TTL</td>
[39]58 <td><input name="minttl" value="<TMPL_VAR NAME=minttl>" /></td>
[2]59 <td class="data"><TMPL_VAR NAME=defminttl></td>
60</tr>
61<tr class="datalinelight">
[39]62 <td colspan="3" align="center"><input type="submit" value=" Update record " /></td>
[2]63</tr>
64</table>
65
[39]66</fieldset>
[2]67</form>
68
69</div>
70
[39]71</td>
72</tr>
[2]73</table>
74
Note: See TracBrowser for help on using the repository browser.