source: trunk/templates/dosplit.tmpl@ 930

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

/trunk

Refine split/shrink result page for case where there is nothing returned
(shrink a master block).

File size: 1.4 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">
[705]9<tr class="heading"><td colspan="2">Allocation resized:</td></tr>
[702]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>
[705]20<TMPL_LOOP NAME=newblocks><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&id=<TMPL_VAR NAME=nid>&basetype=b"><TMPL_VAR NAME=nblock><TMPL_UNLESS __last__><br></TMPL_UNLESS>
[702]21</TMPL_LOOP>
22</td>
23</tr>
24<TMPL_ELSE>
25<tr>
[705]26<td>Shrunk netblock:</td>
27<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&id=<TMPL_VAR NAME=nid>&basetype=b"><TMPL_VAR
28NAME=newblock></a></td>
[702]29</tr>
30<tr>
31<td>New free block:</td>
[710]32<td>
33<TMPL_IF newfb>
34<TMPL_LOOP name=newfb><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR
[705]35NAME=newfree>&amp;fbid=<TMPL_VAR NAME=fbid>&amp;parent=<TMPL_VAR NAME=fbparent>"><TMPL_VAR
36NAME=newfree></a><TMPL_UNLESS __last__><br></TMPL_UNLESS></TMPL_LOOP>
[710]37<TMPL_ELSE>
38N/A
39</TMPL_IF>
[705]40</td>
[702]41</tr>
42</TMPL_IF>
43
44
45</table>
46
47<br>
48<div class="backlink indent">
49<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>
50</div>
51</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.