source: trunk/templates/dosplit.tmpl@ 703

Last change on this file since 703 was 702, checked in by Kris Deugau, 10 years ago

/trunk

Add "split block" feature. See #7. May still need a little tweaking
("List IPs" link for pools, refiddle rDNS template records?)

Also stubbed out "shrink block" (branch for "split block"), and added
a placeholder for "merge blocks".

File size: 1.3 KB
RevLine 
[702]1<TMPL_IF err>
2<div class="regular err">
3<p><TMPL_VAR NAME=err></p>
4<input type="button" value="Back" onclick="history.go(-1)">
5</div>
6<TMPL_ELSE>
7
8<table class="indent altrows" cellspacing="1" cellpadding="1">
9<tr class="heading"><td>Allocation resized:</td></tr>
10
11<tr>
12<td>Original IP block:</td>
13<td><TMPL_VAR NAME=cidr></td>
14</tr>
15
16<TMPL_IF issplit>
17<tr>
18<td>New netblocks:</td>
19<td>
20<TMPL_LOOP NAME=newblocks><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&id=<TMPL_VAR
21NAME=nid>&basetype=b"><TMPL_VAR NAME=nblock><TMPL_UNLESS __last__><br></TMPL_UNLESS>
22</TMPL_LOOP>
23</td>
24</tr>
25<TMPL_ELSE>
26<tr>
27<td>New netblock:</td>
28<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&id=<TMPL_VAR NAME=nid>&basetype=b"><TMPL_VAR NAME=newblock></a></td>
29</tr>
30<tr>
31<td>New free block:</td>
32<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=newfree>&amp;fbid=<TMPL_VAR NAME=fbid>&amp;parent=<TMPL_VAR NAME=fbparent>"><TMPL_VAR NAME=newfree></a></td>
33</tr>
34</TMPL_IF>
35
36
37</table>
38
39<br>
40<div class="backlink indent">
41<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=<TMPL_IF backpool>listpool&amp;pool=<TMPL_ELSE>showsubs&amp;parent=</TMPL_IF><TMPL_VAR NAME=backid>">Back to <TMPL_VAR NAME=backblock></a>
42</div>
43</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.