source: trunk/templates/edit.tmpl@ 839

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

/trunk

Add link(s) into DNSAdmin in per-IP DNS edit segment on allocation edit
page. Also extend for IPv6.

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