source: trunk/templates/record.tmpl@ 608

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

/trunk

Minor tweak on record add/update template for reading clarity

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