source: trunk/templates/edit.tmpl@ 858

Last change on this file since 858 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
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>
[830]41<TMPL_IF v6>
[586]42<td class="regular">
[830]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">
[675]62Pattern: <TMPL_IF maychange>
[586]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">
[675]68<TMPL_IF cached>(cached)</TMPL_IF>
69<TMPL_IF r_iplist>
70<div class="rdns revdata">
[786]71<ul class="collapsible nocheckbox notalist">
[675]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>
[830]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>
[675]88</li>
89</ul>
90</li>
91</ul>
92</div>
93</TMPL_IF>
[586]94</td>
[830]95</TMPL_IF>
[767]96<TMPL_ELSE>
97<td>Reverse DNS information not currently available for this netblock</td>
98</TMPL_IF>
[586]99</tr>
100
[687]101<tr>
[469]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
[687]112<tr>
[469]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>
[470]122<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]123</TMPL_IF>
124</td>
125</tr>
126
[687]127<tr>
[634]128<td class=heading>Layer-2/demarc node:</td>
[469]129<td class=regular>
130<TMPL_IF maychange>
[634]131<select name="node">
132 <option selected="selected">--</option>
[469]133<TMPL_LOOP NAME=nodelist>
[530]134 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]135</select>
[634]136&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
[469]137<TMPL_ELSE>
[470]138<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]139</TMPL_IF>
140</td>
141</tr>
142
[687]143<tr>
[691]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>
[469]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
[687]165<tr>
[469]166<td class=heading>SWIPed?:</td>
167<td class=regular>
[470]168<TMPL_IF swipable>
[469]169<TMPL_IF maychange>
[534]170<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]171<TMPL_ELSE>
172<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
173</TMPL_IF>
[470]174<TMPL_ELSE>
175N/A
176</TMPL_IF>
[469]177</td>
178</tr>
179
[687]180<tr>
[469]181<td class=heading>Last modified:</td>
182<td class=regular><TMPL_VAR NAME=lastmod></td>
183</tr>
184
[687]185<tr>
[469]186<td class="heading">Circuit ID:</td>
187<td class="regular">
188<TMPL_IF maychange>
[534]189<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]190<TMPL_ELSE>
[534]191<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]192</TMPL_IF>
193</td>
194</tr>
195
[687]196<tr>
[469]197<td class="heading">Description/Name:</td>
198<td class="regular">
199<TMPL_IF maychange>
[805]200<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" size=72 class="regular">
[469]201<TMPL_ELSE>
[534]202<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]203</TMPL_IF>
204</td>
205</tr>
206
[687]207<tr>
[469]208<td class="heading" valign="top">Notes:</td>
209<td class="regular">
[805]210<TMPL_IF maychange><textarea rows="8" cols="72" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]211<TMPL_ELSE>
[534]212<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]213</TMPL_IF>
214</td>
215</tr>
216
217<TMPL_IF nocling>
[687]218<tr>
[470]219<td class="heading" valign="top">Restricted data:</td>
220<td class="regular">
[469]221<TMPL_IF maychange>
[805]222<textarea rows="8" cols="72" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]223<TMPL_ELSE>
[534]224<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]225</TMPL_IF>
226</td>
227</tr>
[786]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">
[796]242<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
[786]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>
[798]250<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip" value="<TMPL_VAR NAME=bkip>"></td></tr>
[786]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
[469]271</TMPL_IF>
272
[786]273</TMPL_IF>
274</td>
275</tr>
276
277</TMPL_IF>
278
[469]279<TMPL_IF maychange>
[687]280<tr>
[470]281<td colspan="2" class="center">
[634]282<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[470]283<input type="submit" value=" Update this block " class="regular">
284</td>
285</tr>
286</TMPL_IF>
287</table>
288<TMPL_IF maychange>
[469]289</fieldset>
290</form>
291</TMPL_IF>
292
[470]293</td></tr>
[702]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">
[513]301<fieldset><legend class="noshow">&nbsp;</legend>
[702]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>
[469]315<input type="hidden" name="action" value="delete">
[634]316<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
317<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[469]318<input type=submit value=" Delete this block ">
[702]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 ">
[469]331</div>
[470]332</fieldset>
[469]333</form>
334</TMPL_IF>
[470]335
[702]336</div>
337
[469]338</td>
[702]339
[469]340</tr>
341</table>
342
343</div>
Note: See TracBrowser for help on using the repository browser.