source: trunk/templates/edit.tmpl@ 828

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

/trunk

Remove VRF field from allocation detail pages

File size: 8.6 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">VLAN:</td>
121<td class="regular">
122<TMPL_IF maychange>
123<input type="text" name="vlan" value="<TMPL_VAR NAME=vlan>">
124<TMPL_ELSE>
125<TMPL_VAR NAME=vlan>
126</TMPL_IF>
127</td>
128</tr>
129
130<tr>
131<td class=heading>CustID:</td>
132<td class="regular">
133<TMPL_IF maychange>
134<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
135<TMPL_ELSE>
136<TMPL_VAR NAME=custid>
137</TMPL_IF>
138</td>
139</tr>
140
141<tr>
142<td class=heading>SWIPed?:</td>
143<td class=regular>
144<TMPL_IF swipable>
145<TMPL_IF maychange>
146<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
147<TMPL_ELSE>
148<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
149</TMPL_IF>
150<TMPL_ELSE>
151N/A
152</TMPL_IF>
153</td>
154</tr>
155
156<tr>
157<td class=heading>Last modified:</td>
158<td class=regular><TMPL_VAR NAME=lastmod></td>
159</tr>
160
161<tr>
162<td class="heading">Circuit ID:</td>
163<td class="regular">
164<TMPL_IF maychange>
165<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
166<TMPL_ELSE>
167<TMPL_VAR ESCAPE=HTML NAME=circid>
168</TMPL_IF>
169</td>
170</tr>
171
172<tr>
173<td class="heading">Description/Name:</td>
174<td class="regular">
175<TMPL_IF maychange>
176<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" size=72 class="regular">
177<TMPL_ELSE>
178<TMPL_VAR ESCAPE=HTML NAME=desc>
179</TMPL_IF>
180</td>
181</tr>
182
183<tr>
184<td class="heading" valign="top">Notes:</td>
185<td class="regular">
186<TMPL_IF maychange><textarea rows="8" cols="72" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
187<TMPL_ELSE>
188<TMPL_VAR ESCAPE=HTML NAME=notes>
189</TMPL_IF>
190</td>
191</tr>
192
193<TMPL_IF nocling>
194<tr>
195<td class="heading" valign="top">Restricted data:</td>
196<td class="regular">
197<TMPL_IF maychange>
198<textarea rows="8" cols="72" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
199<TMPL_ELSE>
200<TMPL_VAR ESCAPE=HTML NAME=privdata>
201</TMPL_IF>
202</td>
203</tr>
204
205<tr>
206<td class="heading">Configuration backup:</td>
207<td>
208<TMPL_IF maychange>
209<ul class="collapsible notalist"><li>
210<label for="backupfields">Device/assignment requires backup?</label>
211<input type="checkbox" id="backupfields" name="backupfields" <TMPL_IF hasbackup>checked="checked" </TMPL_IF>/>
212<ul class="notalist"><li>
213
214<table><tr><td>Brand:</td><td><input name="bkbrand" value="<TMPL_VAR NAME=bkbrand>"></td></tr>
215<tr><td>Model:</td><td><input name="bkmodel" value="<TMPL_VAR NAME=bkmodel>"></td></tr>
216<tr><td colspan="2">Optional settings if different from standard ones for the device type above</td></tr>
217<tr><td>Access method:</td><td><select name="bktype">
218<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
219<option<TMPL_IF bktelnet> selected="selected"</TMPL_IF>>telnet</option>
220</select></td></tr>
221<tr><td>Connect from:</td><td><input name="bksrc" value="<TMPL_VAR NAME=bksrc>"></td></tr>
222<tr><td>Username:</td><td><input name="bkuser" value="<TMPL_VAR NAME=bkuser>"></td></tr>
223<tr><td>VTY password:</td><td><input name="bkvpass" value="<TMPL_VAR NAME=bkvpass>"></td></tr>
224<tr><td>Enable password:</td><td><input name="bkepass" value="<TMPL_VAR NAME=bkepass>"></td></tr>
225<tr><td>Alternate port (if required):</td><td><input name="bkport" value="<TMPL_VAR NAME=bkport>"></td></tr>
226<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip" value="<TMPL_VAR NAME=bkip>"></td></tr>
227</table>
228
229</li></ul>
230</li></ul>
231<TMPL_ELSE>
232<td>Configuration backup:</td>
233<td>
234<TMPL_IF backupfields>
235Device will be backed up as below
236<table><tr><td>Brand:</td><td><TMPL_VAR NAME=bkbrand></td></tr>
237<tr><td>Model:</td><td><TMPL_VAR NAME=bkmodel></td></tr>
238<tr><td>Access method:</td><td><TMPL_VAR NAME=bktype></td></tr>
239<tr><td>Connect from:</td><td><TMPL_VAR NAME=bksrc></td></tr>
240<tr><td>Username:</td><td><TMPL_VAR NAME=bkuser></td></tr>
241<tr><td>VTY password:</td><td><TMPL_VAR NAME=bkvpass></td></tr>
242<tr><td>Enable password:</td><td><TMPL_VAR NAME=bkepass></td></tr>
243<tr><td>Port:</td><td><TMPL_VAR NAME=bkport></td></tr>
244</table>
245<TMPL_ELSE>
246Device/assignment not flagged for backup
247</TMPL_IF>
248
249</TMPL_IF>
250</td>
251</tr>
252
253</TMPL_IF>
254
255<TMPL_IF maychange>
256<tr>
257<td colspan="2" class="center">
258<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
259<input type="submit" value=" Update this block " class="regular">
260</td>
261</tr>
262</TMPL_IF>
263</table>
264<TMPL_IF maychange>
265</fieldset>
266</form>
267</TMPL_IF>
268
269</td></tr>
270<tr>
271<td class="center">
272
273<div class="revdata">
274
275<TMPL_IF maymerge>
276<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
277<fieldset><legend class="noshow">&nbsp;</legend>
278<input type="hidden" name="action" value="merge">
279<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
280<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
281<div class="button_l">
282<input type="submit" value=" Merge with adjacent block(s) ">
283</div>
284</fieldset>
285</form>
286</TMPL_IF>
287
288<TMPL_IF maydel>
289<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
290<fieldset><legend class="noshow">&nbsp;</legend>
291<input type="hidden" name="action" value="delete">
292<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
293<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
294<input type=submit value=" Delete this block ">
295</fieldset>
296</form>
297</TMPL_IF>
298
299<TMPL_IF maysplit>
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="split">
303<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
304<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
305<div class="button_r">
306<input type=submit value=" Split/shrink this block ">
307</div>
308</fieldset>
309</form>
310</TMPL_IF>
311
312</div>
313
314</td>
315
316</tr>
317</table>
318
319</div>
Note: See TracBrowser for help on using the repository browser.