source: trunk/templates/edit.tmpl@ 823

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

/trunk

Regularlize and extend description, notes and restricted data field
sizes, and remove HTML-layer limits per request of several NOClings.

File size: 8.8 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>
[786]20<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]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">
[786]51<ul class="collapsible nocheckbox notalist">
[675]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>
[805]187<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" size=72 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">
[805]197<TMPL_IF maychange><textarea rows="8" cols="72" 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>
[805]209<textarea rows="8" cols="72" 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>
[786]215
216<tr>
217<td class="heading">Configuration backup:</td>
218<td>
219<TMPL_IF maychange>
220<ul class="collapsible notalist"><li>
221<label for="backupfields">Device/assignment requires backup?</label>
222<input type="checkbox" id="backupfields" name="backupfields" <TMPL_IF hasbackup>checked="checked" </TMPL_IF>/>
223<ul class="notalist"><li>
224
225<table><tr><td>Brand:</td><td><input name="bkbrand" value="<TMPL_VAR NAME=bkbrand>"></td></tr>
226<tr><td>Model:</td><td><input name="bkmodel" value="<TMPL_VAR NAME=bkmodel>"></td></tr>
227<tr><td colspan="2">Optional settings if different from standard ones for the device type above</td></tr>
228<tr><td>Access method:</td><td><select name="bktype">
[796]229<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
[786]230<option<TMPL_IF bktelnet> selected="selected"</TMPL_IF>>telnet</option>
231</select></td></tr>
232<tr><td>Connect from:</td><td><input name="bksrc" value="<TMPL_VAR NAME=bksrc>"></td></tr>
233<tr><td>Username:</td><td><input name="bkuser" value="<TMPL_VAR NAME=bkuser>"></td></tr>
234<tr><td>VTY password:</td><td><input name="bkvpass" value="<TMPL_VAR NAME=bkvpass>"></td></tr>
235<tr><td>Enable password:</td><td><input name="bkepass" value="<TMPL_VAR NAME=bkepass>"></td></tr>
236<tr><td>Alternate port (if required):</td><td><input name="bkport" value="<TMPL_VAR NAME=bkport>"></td></tr>
[798]237<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip" value="<TMPL_VAR NAME=bkip>"></td></tr>
[786]238</table>
239
240</li></ul>
241</li></ul>
242<TMPL_ELSE>
243<td>Configuration backup:</td>
244<td>
245<TMPL_IF backupfields>
246Device will be backed up as below
247<table><tr><td>Brand:</td><td><TMPL_VAR NAME=bkbrand></td></tr>
248<tr><td>Model:</td><td><TMPL_VAR NAME=bkmodel></td></tr>
249<tr><td>Access method:</td><td><TMPL_VAR NAME=bktype></td></tr>
250<tr><td>Connect from:</td><td><TMPL_VAR NAME=bksrc></td></tr>
251<tr><td>Username:</td><td><TMPL_VAR NAME=bkuser></td></tr>
252<tr><td>VTY password:</td><td><TMPL_VAR NAME=bkvpass></td></tr>
253<tr><td>Enable password:</td><td><TMPL_VAR NAME=bkepass></td></tr>
254<tr><td>Port:</td><td><TMPL_VAR NAME=bkport></td></tr>
255</table>
256<TMPL_ELSE>
257Device/assignment not flagged for backup
[469]258</TMPL_IF>
259
[786]260</TMPL_IF>
261</td>
262</tr>
263
264</TMPL_IF>
265
[469]266<TMPL_IF maychange>
[687]267<tr>
[470]268<td colspan="2" class="center">
[634]269<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[470]270<input type="submit" value=" Update this block " class="regular">
271</td>
272</tr>
273</TMPL_IF>
274</table>
275<TMPL_IF maychange>
[469]276</fieldset>
277</form>
278</TMPL_IF>
279
[470]280</td></tr>
[702]281<tr>
282<td class="center">
283
284<div class="revdata">
285
286<TMPL_IF maymerge>
287<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
[513]288<fieldset><legend class="noshow">&nbsp;</legend>
[702]289<input type="hidden" name="action" value="merge">
290<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
291<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
292<div class="button_l">
293<input type="submit" value=" Merge with adjacent block(s) ">
294</div>
295</fieldset>
296</form>
297</TMPL_IF>
298
299<TMPL_IF maydel>
300<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
301<fieldset><legend class="noshow">&nbsp;</legend>
[469]302<input type="hidden" name="action" value="delete">
[634]303<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
304<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[469]305<input type=submit value=" Delete this block ">
[702]306</fieldset>
307</form>
308</TMPL_IF>
309
310<TMPL_IF maysplit>
311<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
312<fieldset><legend class="noshow">&nbsp;</legend>
313<input type="hidden" name="action" value="split">
314<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
315<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
316<div class="button_r">
317<input type=submit value=" Split/shrink this block ">
[469]318</div>
[470]319</fieldset>
[469]320</form>
321</TMPL_IF>
[470]322
[702]323</div>
324
[469]325</td>
[702]326
[469]327</tr>
328</table>
329
330</div>
Note: See TracBrowser for help on using the repository browser.