source: trunk/templates/confmerge.tmpl@ 727

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

/trunk

Refine variable passing and template variable names on merge prep pages
for accuracy and clarity. See #8.

File size: 2.7 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="domerge">
12<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
13<input type="hidden" name="scope" value="<TMPL_VAR NAME=scope>">
14<TMPL_IF ismaster>
15<input type="hidden" name="typelist" value="mm">
16</TMPL_IF>
17
18<table class="regular altrows" cellspacing="1" cellpadding="1">
19<tr class="heading">
20<td colspan="2">Merge/extend allocation(s)
21<TMPL_IF ispool>
22<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>
23</TMPL_IF></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>Netblock to be created based on netmask of /<TMPL_VAR NAME=newmask>:</td>
31<td><TMPL_VAR NAME=newblock><input type="hidden" name="newmask" value="<TMPL_VAR NAME=newmask>"></td>
32</tr>
33<tr><td>New allocation type:</td>
34<td><TMPL_VAR NAME=newdisptype><input type="hidden" name="newtype" value="<TMPL_VAR NAME=newtype>"></td>
35</tr>
36<tr>
37<td>Existing allocations to merge into new allocation:</td>
38<td>
39<TMPL_LOOP NAME=mergealloc>
40<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=id>&amp;basetype=b"><TMPL_VAR NAME=cidr></a> (<TMPL_VAR NAME=dispname>)
41<input type="hidden" name="mid<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=id>"><br>
42</TMPL_LOOP>
43</td>
44</tr>
45<tr>
46<td>Existing freeblocks to merge under new allocation:</td>
47<td>
48<TMPL_LOOP NAME=mergefree><TMPL_VAR NAME=cidr><br>
49<input type="hidden" name="fid<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=id>">
50</TMPL_LOOP>
51</td>
52</tr>
53
54<TMPL_IF iscontainer>
55<tr>
56<td>Merge scope:</td>
57<td><TMPL_VAR NAME=vis_scope></td>
58</tr>
59</TMPL_IF>
60
61<TMPL_IF ispool>
62<tr>
63<td colspan="2" class="warning">
64Warning: Any end-use suballocations within <TMPL_VAR NAME=newblock> will be converted<br>
65to clusters of "used" IPs on a best-effort basis in this merge.<br>
66Use the Back button and select a container type if you wish to keep these.
67</td>
68</tr>
69</TMPL_IF>
70
71<TMPL_IF isleaf>
72<tr>
73<td colspan="2" class="warning">
74Warning: Any suballocations or pool IPs from the<br>
75allocations above will be REMOVED in this merge!<br>
76Use the Back button and select a container type if you wish to keep these.
77</td>
78</tr>
79</TMPL_IF>
80
81
82<tr>
83<td class="center" colspan="2"><input type="submit" value=" Do merge "></td>
84</tr>
85</table>
86<TMPL_IF ismaster>
87<input type="hidden" name="alloctype" value="mm">
88</TMPL_IF>
89</fieldset>
90</form>
91</div>
92
93</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.