source: trunk/templates/confirm.tmpl@ 935

Last change on this file since 935 was 916, checked in by Kris Deugau, 7 years ago

/trunk

Continue adding a generalized block-notice system. See #17 and #23, sort of.
Add a retrieval sub for block notices to IPDB.pm
Wrap the new module sub in a local sub in main.cgi, since the primary

web-UI actions will be called from a number of places

Update the block assignment templates and call the new local sub for

block assignment

File size: 5.4 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="indent">
9<TMPL_IF warning>
10<div class="center warning">
11<TMPL_VAR NAME=warning>
12</div>
13</TMPL_IF>
14
15<TMPL_IF blockmsg><br><div class="strongwarning blockcenter w70"><TMPL_VAR NAME=blockmsg></div><br></TMPL_IF>
16
17<form method="POST" action="main.cgi" class="regular">
18<fieldset><legend class="noshow">&nbsp;</legend>
19<table class="regular altrows" cellspacing="1" cellpadding="1">
20<tr class="heading"><td>Please confirm</td></tr>
21
22<tr>
23<td>CIDR block to be allocated:</td>
24<td><TMPL_VAR NAME=cidr> <TMPL_IF resvblock>(<TMPL_VAR NAME=resvblock> reserved for expansion)</TMPL_IF></td>
25</tr>
26
27<tr>
28<td>Block allocation is taken from:</td>
29<TMPL_IF staticip>
30<td>
31<select name="parent">
32<TMPL_LOOP name=poollist> <option value="<TMPL_VAR NAME=poolid>"><TMPL_VAR NAME=poolblock> [<TMPL_VAR NAME=poolfree>] free IP(s) in <TMPL_VAR NAME=poolcit></option>
33</TMPL_LOOP></select>
34</td>
35<TMPL_ELSE>
36<td><TMPL_VAR NAME=alloc_from></td>
37</TMPL_IF>
38</tr>
39
40<tr>
41<td>DNS name/pattern:</td>
42<td>
43<TMPL_IF rdns><TMPL_VAR NAME=rdns><TMPL_ELSE>[ Keep default ]</TMPL_IF>
44<TMPL_IF dnslocal>&nbsp; &nbsp;[local]</TMPL_IF>
45<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
46<TMPL_IF r_iplist>
47<div class="rdns revdata">
48<ul class="collapsible nocheckbox notalist">
49<li><label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
50<input type="checkbox" id="per-iplist" />
51<ul class="notalist">
52<li>
53<table>
54<TMPL_LOOP name="r_iplist">
55<tr class="revdata">
56<td><TMPL_VAR NAME=r_ip></td>
57<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
58</tr>
59</TMPL_LOOP>
60</table>
61</li>
62</ul>
63</li>
64</ul>
65</div>
66</TMPL_IF>
67</td>
68</tr>
69
70<tr>
71<td>City:</td>
72<td><TMPL_VAR NAME=city></td>
73</tr>
74
75<tr>
76<td>Layer-2/demarc node:</td>
77<td><TMPL_VAR NAME=nodename></td>
78</tr>
79
80<tr>
81<td>VLAN:</td>
82<td><TMPL_VAR NAME=vlan></td>
83</tr>
84
85<tr>
86<td>Allocation type:</td>
87<td><TMPL_VAR NAME=typefull></td>
88</tr>
89
90<tr>
91<td>Customer ID:</td>
92<td><TMPL_VAR NAME=custid></td>
93</tr>
94
95<tr>
96<td valign="top">Circuit ID:</td>
97<td><TMPL_VAR NAME=circid></td>
98</tr>
99
100<tr>
101<td valign="top">Description/name:</td>
102<td><TMPL_VAR NAME=desc></td>
103</tr>
104
105<tr>
106<td valign="top">Notes:</td>
107<td><TMPL_VAR NAME=notes></td>
108</tr>
109
110<TMPL_IF nocling>
111<tr>
112<td>Restricted data:</td>
113<td><TMPL_VAR NAME=privdata></td>
114</tr>
115
116<tr>
117<td>Configuration backup:</td>
118<td>
119<TMPL_IF backupfields>
120Device will be backed up as below
121<table><tr><td>Brand:</td><td><TMPL_VAR NAME=bkbrand></td></tr>
122<tr><td>Model:</td><td><TMPL_VAR NAME=bkmodel></td></tr>
123<tr><td>Access method:</td><td><TMPL_VAR NAME=bktype></td></tr>
124<tr><td>Connect from:</td><td><TMPL_VAR NAME=bksrc></td></tr>
125<tr><td>Username:</td><td><TMPL_VAR NAME=bkuser></td></tr>
126<tr><td>VTY password:</td><td><TMPL_VAR NAME=bkvpass></td></tr>
127<tr><td>Enable password:</td><td><TMPL_VAR NAME=bkepass></td></tr>
128<tr><td>Port:</td><td><TMPL_VAR NAME=bkport></td></tr>
129<tr><td>IP:</td><td><TMPL_VAR NAME=bkip></td></tr>
130</table>
131<TMPL_ELSE>
132Device/assignment not flagged for backup
133</TMPL_IF>
134</td>
135</tr>
136</TMPL_IF>
137
138<!-- warn -->
139<tr>
140<td class="center" colspan="2">
141<TMPL_UNLESS poollist>
142<input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>">
143<input type="hidden" name="parent" value="<TMPL_VAR NAME=parent>">
144</TMPL_UNLESS>
145<input type="hidden" name="fbid" value="<TMPL_VAR NAME=fbid>">
146<TMPL_IF resvblock><input type="hidden" name="reserve" value="<TMPL_VAR NAME=reserve>"></TMPL_IF>
147<input type="hidden" name="fullcidr" value="<TMPL_VAR NAME=cidr>">
148<input type="hidden" name="rdns" value="<TMPL_VAR NAME=rdns>">
149<input type="hidden" name="city" value="<TMPL_VAR NAME=city>">
150<input type="hidden" name="node" value="<TMPL_VAR NAME=nodeid>">
151<input type="hidden" name="vrf" value="<TMPL_VAR NAME=vrf>">
152<input type="hidden" name="vlan" value="<TMPL_VAR NAME=vlan>">
153<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=alloc_type>">
154<input type="hidden" name="custid" value="<TMPL_VAR NAME=custid>">
155<input type="hidden" name="circid" value="<TMPL_VAR NAME=circid>">
156<input type="hidden" name="desc" value="<TMPL_VAR NAME=desc>">
157<input type="hidden" name="notes" value="<TMPL_VAR NAME=notes>">
158<TMPL_IF nocling>
159<input type="hidden" name="privdata" value="<TMPL_VAR NAME=privdata>">
160<TMPL_IF backupfields>
161<input type="hidden" name="backupfields" value="<TMPL_VAR NAME=backupfields>">
162<input type="hidden" name="bkbrand" value="<TMPL_VAR NAME=bkbrand>">
163<input type="hidden" name="bkmodel" value="<TMPL_VAR NAME=bkmodel>">
164<input type="hidden" name="bktype" value="<TMPL_VAR NAME=bktype>">
165<input type="hidden" name="bksrc" value="<TMPL_VAR NAME=bksrc>">
166<input type="hidden" name="bkuser" value="<TMPL_VAR NAME=bkuser>">
167<input type="hidden" name="bkvpass" value="<TMPL_VAR NAME=bkvpass>">
168<input type="hidden" name="bkepass" value="<TMPL_VAR NAME=bkepass>">
169<input type="hidden" name="bkport" value="<TMPL_VAR NAME=bkport>">
170<input type="hidden" name="bkip" value="<TMPL_VAR NAME=bkip>">
171</TMPL_IF>
172</TMPL_IF>
173<TMPL_IF billinguser>
174<input type="hidden" name="billinguser" value="<TMPL_VAR NAME=billinguser>">
175</TMPL_IF>
176<input type="hidden" name="action" value="<TMPL_VAR NAME=action>">
177<input type="button" value="Back" onclick="history.go(-1)"><input type="submit" value="Confirm">
178</td></tr>
179</table>
180</fieldset>
181</form>
182</div>
183</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.