source: trunk/templates/edit.tmpl@ 900

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

/trunk

Show the reverse zone DNS links on all allocations

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