source: trunk/templates/edit.tmpl@ 938

Last change on this file since 938 was 938, checked in by Kris Deugau, 23 months ago

/trunk

Update allocateion edit template for revised getNodeList() return

File size: 9.7 KB
RevLine 
[917]1<TMPL_IF blockmsg><br><div class="strongwarning blockcenter w70"><TMPL_VAR NAME=blockmsg></div><br></TMPL_IF>
2
[512]3<TMPL_IF webpath></TMPL_IF>
[469]4<div class="indent">
5
[470]6<table cellpadding="0" cellspacing="0">
[687]7
[469]8<tr>
[702]9<td colspan="3">
[469]10
11<TMPL_IF maychange>
12<form method="POST" action="main.cgi">
[513]13<fieldset><legend class="noshow">&nbsp;</legend>
[469]14<input type="hidden" name="action" value="update">
[634]15<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
[469]16</TMPL_IF>
17
[687]18<table class="altrows" cellspacing="1">
[705]19<tr class="heading">
20<td colspan="2">Edit the information below
21<TMPL_IF ispool>
[786]22<div style="float:right;"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=id>">List IPs</a></div></TMPL_IF>
[705]23</td></tr>
[469]24
[687]25<tr>
[469]26<td class=heading>IP block:</td>
27<td class="regular"><TMPL_VAR NAME=block></td>
28</tr>
29
[695]30<TMPL_IF reserve>
[687]31<tr>
[695]32<td class="heading">Expand allocation:</td>
33<td>
34<input type="checkbox" name="expandme" value="<TMPL_VAR NAME=reserve_id>">Add <TMPL_VAR NAME=reserve> to make <TMPL_VAR NAME=newblock>
35<input type="hidden" name="newblock" value="<TMPL_VAR NAME=newblock>">
36</td>
37</tr>
38</TMPL_IF>
39
40<tr>
[878]41<td class="heading">DNS name/pattern:</td>
[767]42<TMPL_IF showrev>
[830]43<TMPL_IF v6>
[586]44<td class="regular">
[830]45<div class="rdns revdata">
46<ul class="collapsible nocheckbox notalist">
47<li>
48<label for="per-iplist">Enter per-IP reverse entries as comma-separated ip,host lines below (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
49<input type="checkbox" id="per-iplist" />
50<ul class="notalist">
51<li>
52<textarea rows="8" cols="70" name="v6list" class="regular"><TMPL_VAR NAME=v6list></textarea>
53</li>
54</ul>
55</li>
56</ul>
57</div>
[879]58<TMPL_IF revlist>
59View reverse zone(s):
60<TMPL_LOOP NAME=revlist><a href="<TMPL_VAR NAME=dnslink>/dns.cgi?page=reclist&amp;id=<TMPL_VAR NAME=rdns_id>&amp;defrec=n&amp;revrec=y"><TMPL_VAR NAME=revnet></a>
61</TMPL_LOOP></TMPL_IF>
[830]62</td>
63<TMPL_ELSE>
64<td class="regular">
[675]65Pattern: <TMPL_IF maychange>
[586]66<input type="text" name="rdns" size="40" value="<TMPL_VAR NAME=rdns>">
67<TMPL_ELSE>
68<TMPL_VAR NAME=rdns>
69</TMPL_IF>
70<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
[675]71<TMPL_IF cached>(cached)</TMPL_IF>
72<TMPL_IF r_iplist>
73<div class="rdns revdata">
[786]74<ul class="collapsible nocheckbox notalist">
[675]75<li>
76<label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
77<input type="checkbox" id="per-iplist" />
78<ul class="notalist">
79<li>
80<table>
81<TMPL_LOOP name="r_iplist">
82<tr>
83<td><TMPL_VAR NAME=r_ip></td>
84<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
85</tr>
86</TMPL_LOOP>
87</table>
88</li>
89</ul>
90</li>
91</ul>
92</div>
93</TMPL_IF>
[879]94<TMPL_IF revlist>
95<div>View reverse zone(s):
96<TMPL_LOOP NAME=revlist><a href="<TMPL_VAR NAME=dnslink>/dns.cgi?page=reclist&amp;id=<TMPL_VAR NAME=rdns_id>&amp;defrec=n&amp;revrec=y"><TMPL_VAR NAME=revnet></a>
97</TMPL_LOOP></div></TMPL_IF>
[586]98</td>
[830]99</TMPL_IF>
[767]100<TMPL_ELSE>
101<td>Reverse DNS information not currently available for this netblock</td>
102</TMPL_IF>
[586]103</tr>
104
[687]105<tr>
[469]106<td class=heading>City:</td>
107<td class="regular">
108<TMPL_IF maychange>
109<input type=text name=city value="<TMPL_VAR NAME=city>">
110<TMPL_ELSE>
111<TMPL_VAR NAME=city>
112</TMPL_IF>
113</td>
114</tr>
115
[687]116<tr>
[469]117<td class=heading>Type:</td>
118<td class=regular>
119<TMPL_IF changetype>
120<select name=alloctype>
121<TMPL_LOOP name=alloctype> <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=type>"><TMPL_VAR NAME=disptype></option>
122</TMPL_LOOP>
123</select>
124<TMPL_ELSE>
125<TMPL_VAR NAME=disptype>
[470]126<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]127</TMPL_IF>
128</td>
129</tr>
130
[687]131<tr>
[634]132<td class=heading>Layer-2/demarc node:</td>
[469]133<td class=regular>
134<TMPL_IF maychange>
[634]135<select name="node">
[938]136 <option>--</option>
[469]137<TMPL_LOOP NAME=nodelist>
[938]138 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]139</select>
[634]140&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
[469]141<TMPL_ELSE>
[470]142<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]143</TMPL_IF>
144</td>
145</tr>
146
[687]147<tr>
[691]148<td class="heading">VLAN:</td>
149<td class="regular">
150<TMPL_IF maychange>
151<input type="text" name="vlan" value="<TMPL_VAR NAME=vlan>">
152<TMPL_ELSE>
153<TMPL_VAR NAME=vlan>
154</TMPL_IF>
155</td>
156</tr>
157
158<tr>
[469]159<td class=heading>CustID:</td>
160<td class="regular">
161<TMPL_IF maychange>
162<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
163<TMPL_ELSE>
164<TMPL_VAR NAME=custid>
165</TMPL_IF>
166</td>
167</tr>
168
[687]169<tr>
[469]170<td class=heading>SWIPed?:</td>
171<td class=regular>
[470]172<TMPL_IF swipable>
[469]173<TMPL_IF maychange>
[534]174<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]175<TMPL_ELSE>
176<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
177</TMPL_IF>
[470]178<TMPL_ELSE>
179N/A
180</TMPL_IF>
[469]181</td>
182</tr>
183
[687]184<tr>
[469]185<td class=heading>Last modified:</td>
186<td class=regular><TMPL_VAR NAME=lastmod></td>
187</tr>
188
[687]189<tr>
[469]190<td class="heading">Circuit ID:</td>
191<td class="regular">
192<TMPL_IF maychange>
[534]193<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]194<TMPL_ELSE>
[534]195<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]196</TMPL_IF>
197</td>
198</tr>
199
[687]200<tr>
[469]201<td class="heading">Description/Name:</td>
202<td class="regular">
203<TMPL_IF maychange>
[805]204<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" size=72 class="regular">
[469]205<TMPL_ELSE>
[534]206<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]207</TMPL_IF>
208</td>
209</tr>
210
[687]211<tr>
[469]212<td class="heading" valign="top">Notes:</td>
213<td class="regular">
[805]214<TMPL_IF maychange><textarea rows="8" cols="72" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]215<TMPL_ELSE>
[534]216<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]217</TMPL_IF>
218</td>
219</tr>
220
221<TMPL_IF nocling>
[687]222<tr>
[470]223<td class="heading" valign="top">Restricted data:</td>
224<td class="regular">
[469]225<TMPL_IF maychange>
[805]226<textarea rows="8" cols="72" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]227<TMPL_ELSE>
[534]228<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]229</TMPL_IF>
230</td>
231</tr>
[786]232
233<tr>
234<td class="heading">Configuration backup:</td>
235<td>
236<TMPL_IF maychange>
237<ul class="collapsible notalist"><li>
238<label for="backupfields">Device/assignment requires backup?</label>
239<input type="checkbox" id="backupfields" name="backupfields" <TMPL_IF hasbackup>checked="checked" </TMPL_IF>/>
240<ul class="notalist"><li>
241
242<table><tr><td>Brand:</td><td><input name="bkbrand" value="<TMPL_VAR NAME=bkbrand>"></td></tr>
243<tr><td>Model:</td><td><input name="bkmodel" value="<TMPL_VAR NAME=bkmodel>"></td></tr>
244<tr><td colspan="2">Optional settings if different from standard ones for the device type above</td></tr>
245<tr><td>Access method:</td><td><select name="bktype">
[796]246<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
[786]247<option<TMPL_IF bktelnet> selected="selected"</TMPL_IF>>telnet</option>
248</select></td></tr>
249<tr><td>Connect from:</td><td><input name="bksrc" value="<TMPL_VAR NAME=bksrc>"></td></tr>
250<tr><td>Username:</td><td><input name="bkuser" value="<TMPL_VAR NAME=bkuser>"></td></tr>
251<tr><td>VTY password:</td><td><input name="bkvpass" value="<TMPL_VAR NAME=bkvpass>"></td></tr>
252<tr><td>Enable password:</td><td><input name="bkepass" value="<TMPL_VAR NAME=bkepass>"></td></tr>
253<tr><td>Alternate port (if required):</td><td><input name="bkport" value="<TMPL_VAR NAME=bkport>"></td></tr>
[798]254<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip" value="<TMPL_VAR NAME=bkip>"></td></tr>
[786]255</table>
256
257</li></ul>
258</li></ul>
259<TMPL_ELSE>
260<td>Configuration backup:</td>
261<td>
262<TMPL_IF backupfields>
263Device will be backed up as below
264<table><tr><td>Brand:</td><td><TMPL_VAR NAME=bkbrand></td></tr>
265<tr><td>Model:</td><td><TMPL_VAR NAME=bkmodel></td></tr>
266<tr><td>Access method:</td><td><TMPL_VAR NAME=bktype></td></tr>
267<tr><td>Connect from:</td><td><TMPL_VAR NAME=bksrc></td></tr>
268<tr><td>Username:</td><td><TMPL_VAR NAME=bkuser></td></tr>
269<tr><td>VTY password:</td><td><TMPL_VAR NAME=bkvpass></td></tr>
270<tr><td>Enable password:</td><td><TMPL_VAR NAME=bkepass></td></tr>
271<tr><td>Port:</td><td><TMPL_VAR NAME=bkport></td></tr>
272</table>
273<TMPL_ELSE>
274Device/assignment not flagged for backup
[469]275</TMPL_IF>
276
[786]277</TMPL_IF>
278</td>
279</tr>
280
281</TMPL_IF>
282
[469]283<TMPL_IF maychange>
[687]284<tr>
[470]285<td colspan="2" class="center">
[634]286<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[879]287<input type="hidden" name="origrdns" value="<TMPL_VAR NAME=rdns>">
[470]288<input type="submit" value=" Update this block " class="regular">
289</td>
290</tr>
291</TMPL_IF>
292</table>
293<TMPL_IF maychange>
[469]294</fieldset>
295</form>
296</TMPL_IF>
297
[470]298</td></tr>
[702]299<tr>
300<td class="center">
301
302<div class="revdata">
303
304<TMPL_IF maymerge>
305<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
[513]306<fieldset><legend class="noshow">&nbsp;</legend>
[702]307<input type="hidden" name="action" value="merge">
308<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
309<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
310<div class="button_l">
311<input type="submit" value=" Merge with adjacent block(s) ">
312</div>
313</fieldset>
314</form>
315</TMPL_IF>
316
317<TMPL_IF maydel>
318<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
319<fieldset><legend class="noshow">&nbsp;</legend>
[469]320<input type="hidden" name="action" value="delete">
[634]321<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
322<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[469]323<input type=submit value=" Delete this block ">
[702]324</fieldset>
325</form>
326</TMPL_IF>
327
328<TMPL_IF maysplit>
329<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
330<fieldset><legend class="noshow">&nbsp;</legend>
331<input type="hidden" name="action" value="split">
332<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
333<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
334<div class="button_r">
335<input type=submit value=" Split/shrink this block ">
[469]336</div>
[470]337</fieldset>
[469]338</form>
339</TMPL_IF>
[470]340
[702]341</div>
342
[469]343</td>
[702]344
[469]345</tr>
346</table>
347
348</div>
Note: See TracBrowser for help on using the repository browser.