source: trunk/templates/edit.tmpl @ 879

Last change on this file since 879 was 879, checked in by Kris Deugau, 6 years ago

/trunk

Show the reverse zone DNS links on all allocations

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