source: branches/stable/templates/record.tmpl@ 317

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

/trunk

Tweak DNSDB::isParent slightly; treat all groups as being their own parent
Remove stale $offset fiddling in page -> bulkdomain
Add error-reporting TMPL_IF on record data page
Continued scope-checking changes:

  • rearrange group-changing check a little to allow propagating the error message without hardcoding it twice
  • handle the special case of group-change while on the default record list page
  • new sub, check_scope, to do the real checking
  • use new sub checking access to individual records (both record and parent domain/group)
  • check target for bulk domain move, as well as source domains in bulkchange
  • check AXFR target group
File size: 2.4 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<TMPL_IF perm_err>
8<div class='errmsg'><TMPL_VAR NAME=perm_err></div>
9<TMPL_ELSE>
10
11<form action="dns.cgi" method="post">
12<fieldset>
13
14<input type="hidden" name="page" value="record" />
15<input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
16<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
17<input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>" />
18<input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
19<input type="hidden" name="recact" value="<TMPL_VAR NAME=recact>" />
20
21<table class="container" width="450">
22<tr><td>
23
24 <table border="0" cellspacing="2" cellpadding="2" width="100%">
25<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
26 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
27 <tr class="datalinelight">
28 <td>Hostname</td>
29 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" /></td>
30 </tr>
31 <tr class="datalinelight">
32 <td>Type</td>
33 <td><select name="type">
34<TMPL_LOOP NAME=typelist>
35 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
36</TMPL_LOOP>
37 </select></td>
38 </tr>
39 <tr class="datalinelight">
40 <td>Address</td>
41 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" /></td>
42 </tr>
43 <tr class="datalinelight">
44 <td>Distance (MX and SRV only)</td>
45 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
46 </tr>
47 <tr class="datalinelight">
48 <td>Weight (SRV only)</td>
49 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
50 </tr>
51 <tr class="datalinelight">
52 <td>Port (SRV only)</td>
53 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
54 </tr>
55 <tr class="datalinelight">
56 <td>TTL</td>
57 <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
58 </tr>
59 <tr class="datalinelight">
60 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
61 </tr>
62 </table>
63
64</td></tr>
65</table>
66
67</fieldset>
68</form>
69
70</TMPL_IF>
71
72</td>
73</tr>
74</table>
Note: See TracBrowser for help on using the repository browser.