source: trunk/templates/merge.tmpl@ 717

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

/trunk

Begin committing "merge/extend blocks". See #8.

This commit adds the first merge page to the UI.

File size: 2.3 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="confmerge">
12<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
13<TMPL_IF ismaster>
14<input type="hidden" name="alloctype" value="mm">
15</TMPL_IF>
16
17<table class="regular altrows" cellspacing="1" cellpadding="1">
18<tr class="heading">
19<td colspan="2">Merge/extend allocation(s)
20<TMPL_IF ispool>
21<div style="float:right;"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR NAME=block>">List IPs</a></div>
22</TMPL_IF>
23</td>
24</tr>
25<tr>
26<td>Current netblock:</td>
27<td><TMPL_VAR NAME=oldblock> (<TMPL_VAR NAME=oldtype>)</td>
28</tr>
29<tr>
30<td>Enter new netmask:</td>
31<td>/<input name="newmask" size="5"></td>
32</tr>
33
34<TMPL_UNLESS ismaster>
35<tr>
36<td>Select type for new merged allocation:</td>
37<td>
38<select name="alloctype">
39<TMPL_LOOP name=typelist>
40 <option value="<TMPL_VAR NAME=type>"<TMPL_IF sel> selected</TMPL_IF>><TMPL_VAR NAME=listname></option></TMPL_LOOP>
41</select>
42</td>
43</tr>
44<tr>
45<td colspan="2" class="warning">
46Warning: Selecting "Customer netblock", "End-use netblock", or "Internal netblock"<br>
47as the target type will result in the loss of suballocation entries from the current allocations.<br>
48Selecting an IP pool type will attempt to retain suballocation data by<br>
49flagging consecutive IPs as "used" to match usage allocations.
50</td>
51</tr>
52<tr>
53<td>Merge scope: (new or existing container types only)</td>
54<td>
55<input type="radio" name="mscope" value="keepall">Keep mergable allocations as suballocations of new block<br>
56<input type="radio" name="mscope" value="mergepeer" checked="checked">Make suballocations direct children of new block<br>
57<input type="radio" name="mscope" value="clearall">Keep only suballocations of <TMPL_VAR NAME=oldblock>
58</td>
59</tr>
60
61<TMPL_ELSE>
62<tr>
63<td colspan="2" class="warning">All suballocations will be preserved when merging master blocks</td>
64</tr>
65</TMPL_UNLESS>
66
67<tr>
68<td class="center" colspan="2"><input type="submit" value=" Show merge details "></td>
69</tr>
70</table>
71</fieldset>
72</form>
73</div>
74
75</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.