source: trunk/templates/edit.tmpl@ 825

Last change on this file since 825 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
Line 
1<TMPL_IF webpath></TMPL_IF>
2<div class="indent">
3
4<table cellpadding="0" cellspacing="0">
5
6<tr>
7<td colspan="3">
8
9<TMPL_IF maychange>
10<form method="POST" action="main.cgi">
11<fieldset><legend class="noshow">&nbsp;</legend>
12<input type="hidden" name="action" value="update">
13<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
14</TMPL_IF>
15
16<table class="altrows" cellspacing="1">
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&amp;pool=<TMPL_VAR NAME=id>">List IPs</a></div></TMPL_IF>
21</td></tr>
22
23<tr>
24<td class=heading>IP block:</td>
25<td class="regular"><TMPL_VAR NAME=block></td>
26</tr>
27
28<TMPL_IF reserve>
29<tr>
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>
39<td class="heading">Reverse DNS:</td>
40<TMPL_IF showrev>
41<td class="regular">
42Pattern: <TMPL_IF maychange>
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">
48<TMPL_IF cached>(cached)</TMPL_IF>
49<TMPL_IF r_iplist>
50<div class="rdns revdata">
51<ul class="collapsible nocheckbox 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>
71</td>
72<TMPL_ELSE>
73<td>Reverse DNS information not currently available for this netblock</td>
74</TMPL_IF>
75</tr>
76
77<tr>
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
88<tr>
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>
98<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
99</TMPL_IF>
100</td>
101</tr>
102
103<tr>
104<td class=heading>Layer-2/demarc node:</td>
105<td class=regular>
106<TMPL_IF maychange>
107<select name="node">
108 <option selected="selected">--</option>
109<TMPL_LOOP NAME=nodelist>
110 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
111</select>
112&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
113<TMPL_ELSE>
114<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
115</TMPL_IF>
116</td>
117</tr>
118
119<tr>
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>
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
152<tr>
153<td class=heading>SWIPed?:</td>
154<td class=regular>
155<TMPL_IF swipable>
156<TMPL_IF maychange>
157<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
158<TMPL_ELSE>
159<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
160</TMPL_IF>
161<TMPL_ELSE>
162N/A
163</TMPL_IF>
164</td>
165</tr>
166
167<tr>
168<td class=heading>Last modified:</td>
169<td class=regular><TMPL_VAR NAME=lastmod></td>
170</tr>
171
172<tr>
173<td class="heading">Circuit ID:</td>
174<td class="regular">
175<TMPL_IF maychange>
176<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
177<TMPL_ELSE>
178<TMPL_VAR ESCAPE=HTML NAME=circid>
179</TMPL_IF>
180</td>
181</tr>
182
183<tr>
184<td class="heading">Description/Name:</td>
185<td class="regular">
186<TMPL_IF maychange>
187<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" size=72 class="regular">
188<TMPL_ELSE>
189<TMPL_VAR ESCAPE=HTML NAME=desc>
190</TMPL_IF>
191</td>
192</tr>
193
194<tr>
195<td class="heading" valign="top">Notes:</td>
196<td class="regular">
197<TMPL_IF maychange><textarea rows="8" cols="72" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
198<TMPL_ELSE>
199<TMPL_VAR ESCAPE=HTML NAME=notes>
200</TMPL_IF>
201</td>
202</tr>
203
204<TMPL_IF nocling>
205<tr>
206<td class="heading" valign="top">Restricted data:</td>
207<td class="regular">
208<TMPL_IF maychange>
209<textarea rows="8" cols="72" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
210<TMPL_ELSE>
211<TMPL_VAR ESCAPE=HTML NAME=privdata>
212</TMPL_IF>
213</td>
214</tr>
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">
229<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
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>
237<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip" value="<TMPL_VAR NAME=bkip>"></td></tr>
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
258</TMPL_IF>
259
260</TMPL_IF>
261</td>
262</tr>
263
264</TMPL_IF>
265
266<TMPL_IF maychange>
267<tr>
268<td colspan="2" class="center">
269<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
270<input type="submit" value=" Update this block " class="regular">
271</td>
272</tr>
273</TMPL_IF>
274</table>
275<TMPL_IF maychange>
276</fieldset>
277</form>
278</TMPL_IF>
279
280</td></tr>
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">
288<fieldset><legend class="noshow">&nbsp;</legend>
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>
302<input type="hidden" name="action" value="delete">
303<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
304<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
305<input type=submit value=" Delete this block ">
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 ">
318</div>
319</fieldset>
320</form>
321</TMPL_IF>
322
323</div>
324
325</td>
326
327</tr>
328</table>
329
330</div>
Note: See TracBrowser for help on using the repository browser.