source: trunk/templates/record.tmpl@ 215

Last change on this file since 215 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
RevLine 
[14]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[100]5<td align="center" valign="top">
[14]6
[155]7<TMPL_IF perm_err>
8<div class='errmsg'><TMPL_VAR NAME=perm_err></div>
9<TMPL_ELSE>
10
[38]11<form action="dns.cgi" method="post">
12<fieldset>
[14]13
[38]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">
[14]22<tr><td>
23
[38]24 <table border="0" cellspacing="2" cellpadding="2" width="100%">
[90]25<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
[38]26 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
[14]27 <tr class="datalinelight">
28 <td>Hostname</td>
[38]29 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" /></td>
[14]30 </tr>
31 <tr class="datalinelight">
32 <td>Type</td>
33 <td><select name="type">
[90]34<TMPL_LOOP NAME=typelist>
[38]35 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
[90]36</TMPL_LOOP>
[14]37 </select></td>
38 </tr>
39 <tr class="datalinelight">
40 <td>Address</td>
[90]41 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" /></td>
[14]42 </tr>
43 <tr class="datalinelight">
44 <td>Distance (MX and SRV only)</td>
[38]45 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
[14]46 </tr>
47 <tr class="datalinelight">
48 <td>Weight (SRV only)</td>
[38]49 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
[14]50 </tr>
51 <tr class="datalinelight">
52 <td>Port (SRV only)</td>
[38]53 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
[14]54 </tr>
55 <tr class="datalinelight">
56 <td>TTL</td>
[38]57 <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
[14]58 </tr>
59 <tr class="datalinelight">
[87]60 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
[14]61 </tr>
62 </table>
63
64</td></tr>
65</table>
66
[38]67</fieldset>
[155]68</form>
69
70</TMPL_IF>
[14]71
[38]72</td>
73</tr>
74</table>
Note: See TracBrowser for help on using the repository browser.