source: trunk/templates/edit.tmpl@ 703

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

/trunk

Add "split block" feature. See #7. May still need a little tweaking
("List IPs" link for pools, refiddle rDNS template records?)

Also stubbed out "shrink block" (branch for "split block"), and added
a placeholder for "merge blocks".

File size: 6.4 KB
Line 
1<TMPL_IF webpath></TMPL_IF>
2<div class="indent">
3
4<table cellpadding="0" cellspacing="0">
5
6<tr>
7<td colspan="3">
8
9<TMPL_IF maychange>
10<form method="POST" action="main.cgi">
11<fieldset><legend class="noshow">&nbsp;</legend>
12<input type="hidden" name="action" value="update">
13<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
14</TMPL_IF>
15
16<table class="altrows" cellspacing="1">
17<tr class="heading"><td>Edit the information below</td></tr>
18
19<tr>
20<td class=heading>IP block:</td>
21<td class="regular"><TMPL_VAR NAME=block></td>
22</tr>
23
24<TMPL_IF reserve>
25<tr>
26<td class="heading">Expand allocation:</td>
27<td>
28<input type="checkbox" name="expandme" value="<TMPL_VAR NAME=reserve_id>">Add <TMPL_VAR NAME=reserve> to make <TMPL_VAR NAME=newblock>
29<input type="hidden" name="newblock" value="<TMPL_VAR NAME=newblock>">
30</td>
31</tr>
32</TMPL_IF>
33
34<tr>
35<td class="heading">Reverse DNS:</td>
36<td class="regular">
37Pattern: <TMPL_IF maychange>
38<input type="text" name="rdns" size="40" value="<TMPL_VAR NAME=rdns>">
39<TMPL_ELSE>
40<TMPL_VAR NAME=rdns>
41</TMPL_IF>
42<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
43<TMPL_IF cached>(cached)</TMPL_IF>
44<TMPL_IF r_iplist>
45<div class="rdns revdata">
46<ul class="collapsible notalist">
47<li>
48<label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
49<input type="checkbox" id="per-iplist" />
50<ul class="notalist">
51<li>
52<table>
53<TMPL_LOOP name="r_iplist">
54<tr>
55<td><TMPL_VAR NAME=r_ip></td>
56<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
57</tr>
58</TMPL_LOOP>
59</table>
60</li>
61</ul>
62</li>
63</ul>
64</div>
65</TMPL_IF>
66</td>
67</tr>
68
69<tr>
70<td class=heading>City:</td>
71<td class="regular">
72<TMPL_IF maychange>
73<input type=text name=city value="<TMPL_VAR NAME=city>">
74<TMPL_ELSE>
75<TMPL_VAR NAME=city>
76</TMPL_IF>
77</td>
78</tr>
79
80<tr>
81<td class=heading>Type:</td>
82<td class=regular>
83<TMPL_IF changetype>
84<select name=alloctype>
85<TMPL_LOOP name=alloctype> <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=type>"><TMPL_VAR NAME=disptype></option>
86</TMPL_LOOP>
87</select>
88<TMPL_ELSE>
89<TMPL_VAR NAME=disptype>
90<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
91</TMPL_IF>
92</td>
93</tr>
94
95<tr>
96<td class=heading>Layer-2/demarc node:</td>
97<td class=regular>
98<TMPL_IF maychange>
99<select name="node">
100 <option selected="selected">--</option>
101<TMPL_LOOP NAME=nodelist>
102 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
103</select>
104&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
105<TMPL_ELSE>
106<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
107</TMPL_IF>
108</td>
109</tr>
110
111<tr>
112<td class="heading">VRF instance:</td>
113<td class="regular">
114<TMPL_IF maychange>
115<input type="text" name="vrf" value="<TMPL_VAR NAME=vrf>">
116<TMPL_ELSE>
117<TMPL_VAR NAME=vrf>
118</TMPL_IF>
119</td>
120</tr>
121
122<tr>
123<td class="heading">VLAN:</td>
124<td class="regular">
125<TMPL_IF maychange>
126<input type="text" name="vlan" value="<TMPL_VAR NAME=vlan>">
127<TMPL_ELSE>
128<TMPL_VAR NAME=vlan>
129</TMPL_IF>
130</td>
131</tr>
132
133<tr>
134<td class=heading>CustID:</td>
135<td class="regular">
136<TMPL_IF maychange>
137<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
138<TMPL_ELSE>
139<TMPL_VAR NAME=custid>
140</TMPL_IF>
141</td>
142</tr>
143
144<tr>
145<td class=heading>SWIPed?:</td>
146<td class=regular>
147<TMPL_IF swipable>
148<TMPL_IF maychange>
149<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
150<TMPL_ELSE>
151<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
152</TMPL_IF>
153<TMPL_ELSE>
154N/A
155</TMPL_IF>
156</td>
157</tr>
158
159<tr>
160<td class=heading>Last modified:</td>
161<td class=regular><TMPL_VAR NAME=lastmod></td>
162</tr>
163
164<tr>
165<td class="heading">Circuit ID:</td>
166<td class="regular">
167<TMPL_IF maychange>
168<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
169<TMPL_ELSE>
170<TMPL_VAR ESCAPE=HTML NAME=circid>
171</TMPL_IF>
172</td>
173</tr>
174
175<tr>
176<td class="heading">Description/Name:</td>
177<td class="regular">
178<TMPL_IF maychange>
179<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
180<TMPL_ELSE>
181<TMPL_VAR ESCAPE=HTML NAME=desc>
182</TMPL_IF>
183</td>
184</tr>
185
186<tr>
187<td class="heading" valign="top">Notes:</td>
188<td class="regular">
189<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
190<TMPL_ELSE>
191<TMPL_VAR ESCAPE=HTML NAME=notes>
192</TMPL_IF>
193</td>
194</tr>
195
196<TMPL_IF nocling>
197<tr>
198<td class="heading" valign="top">Restricted data:</td>
199<td class="regular">
200<TMPL_IF maychange>
201<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
202<TMPL_ELSE>
203<TMPL_VAR ESCAPE=HTML NAME=privdata>
204</TMPL_IF>
205</td>
206</tr>
207</TMPL_IF>
208
209<TMPL_IF maychange>
210<tr>
211<td colspan="2" class="center">
212<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
213<input type="submit" value=" Update this block " class="regular">
214</td>
215</tr>
216</TMPL_IF>
217</table>
218<TMPL_IF maychange>
219</fieldset>
220</form>
221</TMPL_IF>
222
223</td></tr>
224<tr>
225<td class="center">
226
227<div class="revdata">
228
229<TMPL_IF maymerge>
230<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
231<fieldset><legend class="noshow">&nbsp;</legend>
232<input type="hidden" name="action" value="merge">
233<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
234<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
235<div class="button_l">
236<input type="submit" value=" Merge with adjacent block(s) ">
237</div>
238</fieldset>
239</form>
240</TMPL_IF>
241
242<TMPL_IF maydel>
243<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
244<fieldset><legend class="noshow">&nbsp;</legend>
245<input type="hidden" name="action" value="delete">
246<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
247<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
248<input type=submit value=" Delete this block ">
249</fieldset>
250</form>
251</TMPL_IF>
252
253<TMPL_IF maysplit>
254<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
255<fieldset><legend class="noshow">&nbsp;</legend>
256<input type="hidden" name="action" value="split">
257<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
258<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
259<div class="button_r">
260<input type=submit value=" Split/shrink this block ">
261</div>
262</fieldset>
263</form>
264</TMPL_IF>
265
266</div>
267
268</td>
269
270</tr>
271</table>
272
273</div>
Note: See TracBrowser for help on using the repository browser.