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

Last change on this file since 779 was 649, checked in by Kris Deugau, 10 years ago

/branches/stable

Subtle bugfix merge! All changes from /trunk r589 through r648 merged.

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