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

Last change on this file since 623 was 548, checked in by Kris Deugau, 11 years ago

/branches/stable

Merge reverse DNS work and object conversion from /trunk, part 5

Includes changes through r543 with a few more minor conflicts.

File size: 3.6 KB
Line 
1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
4<td align="center" valign="top">
5
6<TMPL_IF perm_err>
7<div class='errmsg'><TMPL_VAR NAME=perm_err></div>
8<TMPL_ELSE>
9
10<form action="<TMPL_VAR NAME=script_self>" method="post">
11<fieldset>
12
13<input type="hidden" name="page" value="record" />
14<input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
15<input type="hidden" name="revrec" value="<TMPL_VAR NAME=revrec>" />
16<input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>" />
17<input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
18<input type="hidden" name="recact" value="<TMPL_VAR NAME=recact>" />
19
20<table class="container" width="520">
21<tr><td>
22
23 <table border="0" cellspacing="2" cellpadding="2" width="100%">
24<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
25 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
26 <tr class="datalinelight">
27<TMPL_IF fwdzone>
28 <td>Hostname</td>
29 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" size="30" />&nbsp; &nbsp; <a href="reverse-patterns.html">?</a></td>
30<TMPL_ELSE>
31 <td>IP Address</td>
32 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" size="30" /></td>
33</TMPL_IF>
34 </tr>
35 <tr class="datalinelight">
36 <td>Type</td>
37 <td><select name="type">
38<TMPL_LOOP NAME=typelist>
39 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
40</TMPL_LOOP>
41 </select></td>
42 </tr>
43 <tr class="datalinelight">
44<TMPL_IF fwdzone>
45 <td>Address</td>
46 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" size="30" /></td>
47<TMPL_ELSE>
48 <td>Hostname</td>
49 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" size="30" />&nbsp; &nbsp; <a href="reverse-patterns.html">?</a></td>
50</TMPL_IF>
51 </tr>
52<TMPL_IF fwdzone>
53 <tr class="datalinelight">
54 <td>Distance (MX and SRV only)</td>
55 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
56 </tr>
57 <tr class="datalinelight">
58 <td>Weight (SRV only)</td>
59 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
60 </tr>
61 <tr class="datalinelight">
62 <td>Port (SRV only)</td>
63 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
64 </tr>
65</TMPL_IF>
66 <tr class="datalinelight">
67 <td>TTL</td>
68 <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
69 </tr>
70<TMPL_IF location_view>
71 <tr class="datalinelight">
72 <td>Location/view</td>
73<TMPL_IF record_locchg>
74 <td><select name="location">
75<TMPL_LOOP name=loclist> <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=locname></option>
76</TMPL_LOOP>
77 </select></td>
78<TMPL_ELSE>
79 <td><TMPL_VAR NAME=loc_name></td>
80</TMPL_IF>
81 </tr>
82</TMPL_IF>
83<TMPL_UNLESS is_default>
84 <tr class="datalinelight">
85 <td>Timestamp<br />(blank or 0 disables timestamp)</td>
86 <td>Valid <input type="radio" name="expires" value="until"<TMPL_IF stamp_until> checked="checked"</TMPL_IF>>until
87 <input type="radio" name="expires" value="after"<TMPL_UNLESS stamp_until> checked="checked"</TMPL_UNLESS>>after:
88 <input type="text" name="stamp" value="<TMPL_VAR NAME=stamp>" />
89 </td>
90 </tr>
91</TMPL_UNLESS>
92 <tr class="datalinelight">
93 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
94 </tr>
95 </table>
96
97</td></tr>
98</table>
99
100</fieldset>
101</form>
102
103</TMPL_IF>
104
105</td>
106</tr>
107</table>
Note: See TracBrowser for help on using the repository browser.