source: trunk/templates/confirm.tmpl@ 676

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

/trunk

Start extending rDNS support to allow entering per-IP reverse names. See #1.

  • configuration for maximum IP list length
  • CSS to support hideable space so longer lists don't distort and confuse the page too much
  • Hideable space on the assignment confirmation page for per-IP fields
  • Generate IP list for assignment confirmation - note we can't do it on the previous page without heavy AJAX (or heavier Javascript) because we don't know what block we're even assigning at that stage.
File size: 3.6 KB
Line 
1<TMPL_IF webpath></TMPL_IF>
2<TMPL_IF err>
3<div class="regular err">
4<p><TMPL_VAR NAME=err></p>
5<input type="button" value="Back" onclick="history.go(-1)">
6</div>
7<TMPL_ELSE>
8<div class="heading">Please confirm</div>
9<div class="indent">
10
11<form method="POST" action="main.cgi" class="regular">
12<fieldset><legend class="noshow">&nbsp;</legend>
13<table class="regular" cellspacing="1" cellpadding="1">
14
15<tr class="row0">
16<td>CIDR block to be allocated:</td>
17<td><TMPL_VAR NAME=cidr></td>
18</tr>
19
20<tr class="row1">
21<td>Block allocation is taken from:</td>
22<TMPL_IF staticip>
23<td>
24<select name="alloc_from">
25<TMPL_LOOP name=poollist> <option value="<TMPL_VAR NAME=poolblock>,<TMPL_VAR NAME=poolrdepth>"><TMPL_VAR NAME=poolblock> [<TMPL_VAR NAME=poolfree>] free IP(s) in <TMPL_VAR NAME=poolcit></option>
26</TMPL_LOOP></select>
27</td>
28<TMPL_ELSE>
29<td><TMPL_VAR NAME=alloc_from></td>
30</TMPL_IF>
31</tr>
32
33<tr class="row0">
34<td>Reverse DNS:</td>
35<td>
36<TMPL_IF rdns><TMPL_VAR NAME=rdns><TMPL_ELSE>[ Keep default ]</TMPL_IF>
37<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
38<TMPL_IF r_iplist>
39<div class="rdns revdata">
40<ul class="collapsible notalist">
41<li><label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
42<input type="checkbox" id="per-iplist" />
43<ul class="notalist">
44<li>
45<table>
46<TMPL_LOOP name="r_iplist">
47<tr>
48<td><TMPL_VAR NAME=r_ip></td>
49<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
50</tr>
51</TMPL_LOOP>
52</table>
53</li>
54</ul>
55</li>
56</ul>
57</div>
58</TMPL_IF>
59
60</td>
61</tr>
62
63<tr class="row1">
64<td>City:</td>
65<td><TMPL_VAR NAME=city></td>
66</tr>
67
68<tr class="row0">
69<td>Layer-2/demarc node:</td>
70<td><TMPL_VAR NAME=nodename></td>
71</tr>
72
73<tr class="row1">
74<td>Allocation type:</td>
75<td><TMPL_VAR NAME=typefull></td>
76</tr>
77
78<tr class="row0">
79<td>Customer ID:</td>
80<td><TMPL_VAR NAME=custid></td>
81</tr>
82
83<tr class="row1">
84<td valign="top">Circuit ID:</td>
85<td><TMPL_VAR NAME=circid></td>
86</tr>
87
88<tr class="row0">
89<td valign="top">Description/name:</td>
90<td><TMPL_VAR NAME=desc></td>
91</tr>
92
93<tr class="row1">
94<td valign="top">Notes:</td>
95<td><TMPL_VAR NAME=notes></td>
96</tr>
97
98<TMPL_IF privdata>
99<tr class="row0">
100<td>Restricted data:</td>
101<td><TMPL_VAR NAME=privdata></td>
102</tr>
103</TMPL_IF>
104
105<!-- warn -->
106<tr class="<TMPL_IF privdata>row1<TMPL_ELSE>row0</TMPL_IF>">
107<td class="center" colspan="2">
108<TMPL_UNLESS poollist><input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>"></TMPL_UNLESS>
109<input type="hidden" name="parent" value="<TMPL_VAR NAME=parent>">
110<input type="hidden" name="fbid" value="<TMPL_VAR NAME=fbid>">
111<input type="hidden" name="fullcidr" value="<TMPL_VAR NAME=cidr>">
112<input type="hidden" name="rdns" value="<TMPL_VAR NAME=rdns>">
113<input type="hidden" name="city" value="<TMPL_VAR NAME=city>">
114<input type="hidden" name="node" value="<TMPL_VAR NAME=nodeid>">
115<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=alloc_type>">
116<input type="hidden" name="custid" value="<TMPL_VAR NAME=custid>">
117<input type="hidden" name="circid" value="<TMPL_VAR NAME=circid>">
118<input type="hidden" name="desc" value="<TMPL_VAR NAME=desc>">
119<input type="hidden" name="notes" value="<TMPL_VAR NAME=notes>">
120<TMPL_IF privdata>
121<input type="hidden" name="privdata" value="<TMPL_VAR NAME=privdata>">
122</TMPL_IF>
123<TMPL_IF billinguser>
124<input type="hidden" name="billinguser" value="<TMPL_VAR NAME=billinguser>">
125</TMPL_IF>
126<input type="hidden" name="action" value="<TMPL_VAR NAME=action>">
127<input type="button" value="Back" onclick="history.go(-1)"><input type="submit" value="Confirm">
128</td></tr>
129</table>
130</fieldset>
131</form>
132</div>
133</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.