source: trunk/templates/split.tmpl@ 702

Last change on this file since 702 was 702, checked in by Kris Deugau, 9 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.4 KB
Line 
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<div class="indent">
9<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
10<fieldset><legend class="noshow">&nbsp;</legend>
11<input type="hidden" name="action" value="dosplit">
12<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
13
14<table class="regular altrows" cellspacing="1" cellpadding="1">
15<tr class="heading"><td>Split/shrink allocation</td></tr>
16<tr>
17<td>Current netblock:</td>
18<td><TMPL_VAR NAME=oldblock></td>
19</tr>
20<tr>
21<td><input type="radio" name="subact" value="split" checked="checked"> Split</td>
22<td>
23<input type="radio" name="split" value="<TMPL_VAR NAME=sp2mask>" checked="checked">Split into 2 /<TMPL_VAR NAME=sp2mask> blocks
24<TMPL_IF sp4mask><br>
25<input type="radio" name="split" value="<TMPL_VAR NAME=sp4mask>">Split into 4 /<TMPL_VAR NAME=sp4mask> blocks
26</TMPL_IF>
27</td>
28</tr>
29<tr>
30<td><input type="radio" name="subact" value="shrink"> Shrink<br> (return leftover IP space as free)</td>
31<td>
32<input type="radio" name="shrink" value="<TMPL_VAR NAME=newblockA>">Keep <TMPL_VAR NAME=newblockA><br>
33<input type="radio" name="shrink" value="<TMPL_VAR NAME=newblockB>">Keep <TMPL_VAR NAME=newblockB></td>
34</tr>
35
36<tr>
37<td class="center" colspan="2"><input type="submit" value=" Split/Shrink "></td>
38</tr>
39</table>
40</fieldset>
41</form>
42</div>
43
44</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.