source: trunk/templates/edit.tmpl@ 769

Last change on this file since 769 was 767, checked in by Kris Deugau, 9 years ago

/trunk

Commit a couple of template tweaks for rDNS availability that got
missed when the code changes were committed

File size: 6.7 KB
RevLine 
[512]1<TMPL_IF webpath></TMPL_IF>
[469]2<div class="indent">
3
[470]4<table cellpadding="0" cellspacing="0">
[687]5
[469]6<tr>
[702]7<td colspan="3">
[469]8
9<TMPL_IF maychange>
10<form method="POST" action="main.cgi">
[513]11<fieldset><legend class="noshow">&nbsp;</legend>
[469]12<input type="hidden" name="action" value="update">
[634]13<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
[469]14</TMPL_IF>
15
[687]16<table class="altrows" cellspacing="1">
[705]17<tr class="heading">
18<td colspan="2">Edit the information below
19<TMPL_IF ispool>
20<div style="float:right;"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR NAME=id>">List IPs</a></div></TMPL_IF>
21</td></tr>
[469]22
[687]23<tr>
[469]24<td class=heading>IP block:</td>
25<td class="regular"><TMPL_VAR NAME=block></td>
26</tr>
27
[695]28<TMPL_IF reserve>
[687]29<tr>
[695]30<td class="heading">Expand allocation:</td>
31<td>
32<input type="checkbox" name="expandme" value="<TMPL_VAR NAME=reserve_id>">Add <TMPL_VAR NAME=reserve> to make <TMPL_VAR NAME=newblock>
33<input type="hidden" name="newblock" value="<TMPL_VAR NAME=newblock>">
34</td>
35</tr>
36</TMPL_IF>
37
38<tr>
[675]39<td class="heading">Reverse DNS:</td>
[767]40<TMPL_IF showrev>
[586]41<td class="regular">
[675]42Pattern: <TMPL_IF maychange>
[586]43<input type="text" name="rdns" size="40" value="<TMPL_VAR NAME=rdns>">
44<TMPL_ELSE>
45<TMPL_VAR NAME=rdns>
46</TMPL_IF>
47<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
[675]48<TMPL_IF cached>(cached)</TMPL_IF>
49<TMPL_IF r_iplist>
50<div class="rdns revdata">
51<ul class="collapsible notalist">
52<li>
53<label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
54<input type="checkbox" id="per-iplist" />
55<ul class="notalist">
56<li>
57<table>
58<TMPL_LOOP name="r_iplist">
59<tr>
60<td><TMPL_VAR NAME=r_ip></td>
61<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
62</tr>
63</TMPL_LOOP>
64</table>
65</li>
66</ul>
67</li>
68</ul>
69</div>
70</TMPL_IF>
[586]71</td>
[767]72<TMPL_ELSE>
73<td>Reverse DNS information not currently available for this netblock</td>
74</TMPL_IF>
[586]75</tr>
76
[687]77<tr>
[469]78<td class=heading>City:</td>
79<td class="regular">
80<TMPL_IF maychange>
81<input type=text name=city value="<TMPL_VAR NAME=city>">
82<TMPL_ELSE>
83<TMPL_VAR NAME=city>
84</TMPL_IF>
85</td>
86</tr>
87
[687]88<tr>
[469]89<td class=heading>Type:</td>
90<td class=regular>
91<TMPL_IF changetype>
92<select name=alloctype>
93<TMPL_LOOP name=alloctype> <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=type>"><TMPL_VAR NAME=disptype></option>
94</TMPL_LOOP>
95</select>
96<TMPL_ELSE>
97<TMPL_VAR NAME=disptype>
[470]98<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]99</TMPL_IF>
100</td>
101</tr>
102
[687]103<tr>
[634]104<td class=heading>Layer-2/demarc node:</td>
[469]105<td class=regular>
106<TMPL_IF maychange>
[634]107<select name="node">
108 <option selected="selected">--</option>
[469]109<TMPL_LOOP NAME=nodelist>
[530]110 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]111</select>
[634]112&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
[469]113<TMPL_ELSE>
[470]114<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]115</TMPL_IF>
116</td>
117</tr>
118
[687]119<tr>
[691]120<td class="heading">VRF instance:</td>
121<td class="regular">
122<TMPL_IF maychange>
123<input type="text" name="vrf" value="<TMPL_VAR NAME=vrf>">
124<TMPL_ELSE>
125<TMPL_VAR NAME=vrf>
126</TMPL_IF>
127</td>
128</tr>
129
130<tr>
131<td class="heading">VLAN:</td>
132<td class="regular">
133<TMPL_IF maychange>
134<input type="text" name="vlan" value="<TMPL_VAR NAME=vlan>">
135<TMPL_ELSE>
136<TMPL_VAR NAME=vlan>
137</TMPL_IF>
138</td>
139</tr>
140
141<tr>
[469]142<td class=heading>CustID:</td>
143<td class="regular">
144<TMPL_IF maychange>
145<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
146<TMPL_ELSE>
147<TMPL_VAR NAME=custid>
148</TMPL_IF>
149</td>
150</tr>
151
[687]152<tr>
[469]153<td class=heading>SWIPed?:</td>
154<td class=regular>
[470]155<TMPL_IF swipable>
[469]156<TMPL_IF maychange>
[534]157<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]158<TMPL_ELSE>
159<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
160</TMPL_IF>
[470]161<TMPL_ELSE>
162N/A
163</TMPL_IF>
[469]164</td>
165</tr>
166
[687]167<tr>
[469]168<td class=heading>Last modified:</td>
169<td class=regular><TMPL_VAR NAME=lastmod></td>
170</tr>
171
[687]172<tr>
[469]173<td class="heading">Circuit ID:</td>
174<td class="regular">
175<TMPL_IF maychange>
[534]176<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]177<TMPL_ELSE>
[534]178<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]179</TMPL_IF>
180</td>
181</tr>
182
[687]183<tr>
[469]184<td class="heading">Description/Name:</td>
185<td class="regular">
186<TMPL_IF maychange>
[534]187<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
[469]188<TMPL_ELSE>
[534]189<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]190</TMPL_IF>
191</td>
192</tr>
193
[687]194<tr>
[469]195<td class="heading" valign="top">Notes:</td>
196<td class="regular">
[534]197<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]198<TMPL_ELSE>
[534]199<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]200</TMPL_IF>
201</td>
202</tr>
203
204<TMPL_IF nocling>
[687]205<tr>
[470]206<td class="heading" valign="top">Restricted data:</td>
207<td class="regular">
[469]208<TMPL_IF maychange>
[534]209<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]210<TMPL_ELSE>
[534]211<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]212</TMPL_IF>
213</td>
214</tr>
215</TMPL_IF>
216
217<TMPL_IF maychange>
[687]218<tr>
[470]219<td colspan="2" class="center">
[634]220<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[470]221<input type="submit" value=" Update this block " class="regular">
222</td>
223</tr>
224</TMPL_IF>
225</table>
226<TMPL_IF maychange>
[469]227</fieldset>
228</form>
229</TMPL_IF>
230
[470]231</td></tr>
[702]232<tr>
233<td class="center">
234
235<div class="revdata">
236
237<TMPL_IF maymerge>
238<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
[513]239<fieldset><legend class="noshow">&nbsp;</legend>
[702]240<input type="hidden" name="action" value="merge">
241<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
242<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
243<div class="button_l">
244<input type="submit" value=" Merge with adjacent block(s) ">
245</div>
246</fieldset>
247</form>
248</TMPL_IF>
249
250<TMPL_IF maydel>
251<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
252<fieldset><legend class="noshow">&nbsp;</legend>
[469]253<input type="hidden" name="action" value="delete">
[634]254<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
255<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[469]256<input type=submit value=" Delete this block ">
[702]257</fieldset>
258</form>
259</TMPL_IF>
260
261<TMPL_IF maysplit>
262<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
263<fieldset><legend class="noshow">&nbsp;</legend>
264<input type="hidden" name="action" value="split">
265<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
266<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
267<div class="button_r">
268<input type=submit value=" Split/shrink this block ">
[469]269</div>
[470]270</fieldset>
[469]271</form>
272</TMPL_IF>
[470]273
[702]274</div>
275
[469]276</td>
[702]277
[469]278</tr>
279</table>
280
281</div>
Note: See TracBrowser for help on using the repository browser.