source: trunk/templates/confirm.tmpl@ 926

Last change on this file since 926 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
RevLine 
[512]1<TMPL_IF webpath></TMPL_IF>
[463]2<TMPL_IF err>
[503]3<div class="regular err">
[463]4<p><TMPL_VAR NAME=err></p>
5<input type="button" value="Back" onclick="history.go(-1)">
6</div>
7<TMPL_ELSE>
[461]8<div class="indent">
[692]9<TMPL_IF warning>
10<div class="center warning">
11<TMPL_VAR NAME=warning>
12</div>
13</TMPL_IF>
[916]14
15<TMPL_IF blockmsg><br><div class="strongwarning blockcenter w70"><TMPL_VAR NAME=blockmsg></div><br></TMPL_IF>
16
[463]17<form method="POST" action="main.cgi" class="regular">
[513]18<fieldset><legend class="noshow">&nbsp;</legend>
[687]19<table class="regular altrows" cellspacing="1" cellpadding="1">
20<tr class="heading"><td>Please confirm</td></tr>
[461]21
[687]22<tr>
[461]23<td>CIDR block to be allocated:</td>
[692]24<td><TMPL_VAR NAME=cidr> <TMPL_IF resvblock>(<TMPL_VAR NAME=resvblock> reserved for expansion)</TMPL_IF></td>
[461]25</tr>
26
[687]27<tr>
[461]28<td>Block allocation is taken from:</td>
[463]29<TMPL_IF staticip>
30<td>
[766]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>
[463]33</TMPL_LOOP></select>
34</td>
35<TMPL_ELSE>
[461]36<td><TMPL_VAR NAME=alloc_from></td>
[463]37</TMPL_IF>
[461]38</tr>
39
[687]40<tr>
[878]41<td>DNS name/pattern:</td>
[674]42<td>
43<TMPL_IF rdns><TMPL_VAR NAME=rdns><TMPL_ELSE>[ Keep default ]</TMPL_IF>
[767]44<TMPL_IF dnslocal>&nbsp; &nbsp;[local]</TMPL_IF>
[585]45<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
[674]46<TMPL_IF r_iplist>
47<div class="rdns revdata">
[797]48<ul class="collapsible nocheckbox notalist">
[674]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">
[687]55<tr class="revdata">
[674]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>
[585]67</td>
68</tr>
69
[687]70<tr>
[461]71<td>City:</td>
72<td><TMPL_VAR NAME=city></td>
73</tr>
74
[687]75<tr>
[633]76<td>Layer-2/demarc node:</td>
[461]77<td><TMPL_VAR NAME=nodename></td>
78</tr>
79
[687]80<tr>
[691]81<td>VLAN:</td>
82<td><TMPL_VAR NAME=vlan></td>
83</tr>
84
85<tr>
[461]86<td>Allocation type:</td>
87<td><TMPL_VAR NAME=typefull></td>
88</tr>
89
[687]90<tr>
[461]91<td>Customer ID:</td>
92<td><TMPL_VAR NAME=custid></td>
93</tr>
94
[687]95<tr>
[461]96<td valign="top">Circuit ID:</td>
97<td><TMPL_VAR NAME=circid></td>
98</tr>
99
[687]100<tr>
[461]101<td valign="top">Description/name:</td>
102<td><TMPL_VAR NAME=desc></td>
103</tr>
104
[687]105<tr>
[461]106<td valign="top">Notes:</td>
107<td><TMPL_VAR NAME=notes></td>
108</tr>
109
[783]110<TMPL_IF nocling>
[687]111<tr>
[461]112<td>Restricted data:</td>
113<td><TMPL_VAR NAME=privdata></td>
114</tr>
[783]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>
[798]129<tr><td>IP:</td><td><TMPL_VAR NAME=bkip></td></tr>
[783]130</table>
131<TMPL_ELSE>
132Device/assignment not flagged for backup
[461]133</TMPL_IF>
[783]134</td>
135</tr>
136</TMPL_IF>
[461]137
138<!-- warn -->
[687]139<tr>
[461]140<td class="center" colspan="2">
[766]141<TMPL_UNLESS poollist>
142<input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>">
[633]143<input type="hidden" name="parent" value="<TMPL_VAR NAME=parent>">
[766]144</TMPL_UNLESS>
[633]145<input type="hidden" name="fbid" value="<TMPL_VAR NAME=fbid>">
[692]146<TMPL_IF resvblock><input type="hidden" name="reserve" value="<TMPL_VAR NAME=reserve>"></TMPL_IF>
[461]147<input type="hidden" name="fullcidr" value="<TMPL_VAR NAME=cidr>">
[585]148<input type="hidden" name="rdns" value="<TMPL_VAR NAME=rdns>">
[461]149<input type="hidden" name="city" value="<TMPL_VAR NAME=city>">
150<input type="hidden" name="node" value="<TMPL_VAR NAME=nodeid>">
[691]151<input type="hidden" name="vrf" value="<TMPL_VAR NAME=vrf>">
152<input type="hidden" name="vlan" value="<TMPL_VAR NAME=vlan>">
[461]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>">
[783]158<TMPL_IF nocling>
[461]159<input type="hidden" name="privdata" value="<TMPL_VAR NAME=privdata>">
[783]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>">
[798]170<input type="hidden" name="bkip" value="<TMPL_VAR NAME=bkip>">
[461]171</TMPL_IF>
[783]172</TMPL_IF>
[461]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">
[463]178</td></tr>
179</table>
[461]180</fieldset>
181</form>
182</div>
[463]183</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.