source: trunk/templates/edit.tmpl@ 929

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

/trunk

Continue adding a generalized block-notice system. See #17 and #23, sort of.

  • showsubs browse pages
  • IP pool list page
  • Netblock editing page
File size: 9.7 KB
Line 
1<TMPL_IF blockmsg><br><div class="strongwarning blockcenter w70"><TMPL_VAR NAME=blockmsg></div><br></TMPL_IF>
2
3<TMPL_IF webpath></TMPL_IF>
4<div class="indent">
5
6<table cellpadding="0" cellspacing="0">
7
8<tr>
9<td colspan="3">
10
11<TMPL_IF maychange>
12<form method="POST" action="main.cgi">
13<fieldset><legend class="noshow">&nbsp;</legend>
14<input type="hidden" name="action" value="update">
15<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
16</TMPL_IF>
17
18<table class="altrows" cellspacing="1">
19<tr class="heading">
20<td colspan="2">Edit the information below
21<TMPL_IF ispool>
22<div style="float:right;"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=id>">List IPs</a></div></TMPL_IF>
23</td></tr>
24
25<tr>
26<td class=heading>IP block:</td>
27<td class="regular"><TMPL_VAR NAME=block></td>
28</tr>
29
30<TMPL_IF reserve>
31<tr>
32<td class="heading">Expand allocation:</td>
33<td>
34<input type="checkbox" name="expandme" value="<TMPL_VAR NAME=reserve_id>">Add <TMPL_VAR NAME=reserve> to make <TMPL_VAR NAME=newblock>
35<input type="hidden" name="newblock" value="<TMPL_VAR NAME=newblock>">
36</td>
37</tr>
38</TMPL_IF>
39
40<tr>
41<td class="heading">DNS name/pattern:</td>
42<TMPL_IF showrev>
43<TMPL_IF v6>
44<td class="regular">
45<div class="rdns revdata">
46<ul class="collapsible nocheckbox notalist">
47<li>
48<label for="per-iplist">Enter per-IP reverse entries as comma-separated ip,host lines below (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<textarea rows="8" cols="70" name="v6list" class="regular"><TMPL_VAR NAME=v6list></textarea>
53</li>
54</ul>
55</li>
56</ul>
57</div>
58<TMPL_IF revlist>
59View reverse zone(s):
60<TMPL_LOOP NAME=revlist><a href="<TMPL_VAR NAME=dnslink>/dns.cgi?page=reclist&amp;id=<TMPL_VAR NAME=rdns_id>&amp;defrec=n&amp;revrec=y"><TMPL_VAR NAME=revnet></a>
61</TMPL_LOOP></TMPL_IF>
62</td>
63<TMPL_ELSE>
64<td class="regular">
65Pattern: <TMPL_IF maychange>
66<input type="text" name="rdns" size="40" value="<TMPL_VAR NAME=rdns>">
67<TMPL_ELSE>
68<TMPL_VAR NAME=rdns>
69</TMPL_IF>
70<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
71<TMPL_IF cached>(cached)</TMPL_IF>
72<TMPL_IF r_iplist>
73<div class="rdns revdata">
74<ul class="collapsible nocheckbox notalist">
75<li>
76<label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
77<input type="checkbox" id="per-iplist" />
78<ul class="notalist">
79<li>
80<table>
81<TMPL_LOOP name="r_iplist">
82<tr>
83<td><TMPL_VAR NAME=r_ip></td>
84<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
85</tr>
86</TMPL_LOOP>
87</table>
88</li>
89</ul>
90</li>
91</ul>
92</div>
93</TMPL_IF>
94<TMPL_IF revlist>
95<div>View reverse zone(s):
96<TMPL_LOOP NAME=revlist><a href="<TMPL_VAR NAME=dnslink>/dns.cgi?page=reclist&amp;id=<TMPL_VAR NAME=rdns_id>&amp;defrec=n&amp;revrec=y"><TMPL_VAR NAME=revnet></a>
97</TMPL_LOOP></div></TMPL_IF>
98</td>
99</TMPL_IF>
100<TMPL_ELSE>
101<td>Reverse DNS information not currently available for this netblock</td>
102</TMPL_IF>
103</tr>
104
105<tr>
106<td class=heading>City:</td>
107<td class="regular">
108<TMPL_IF maychange>
109<input type=text name=city value="<TMPL_VAR NAME=city>">
110<TMPL_ELSE>
111<TMPL_VAR NAME=city>
112</TMPL_IF>
113</td>
114</tr>
115
116<tr>
117<td class=heading>Type:</td>
118<td class=regular>
119<TMPL_IF changetype>
120<select name=alloctype>
121<TMPL_LOOP name=alloctype> <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=type>"><TMPL_VAR NAME=disptype></option>
122</TMPL_LOOP>
123</select>
124<TMPL_ELSE>
125<TMPL_VAR NAME=disptype>
126<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
127</TMPL_IF>
128</td>
129</tr>
130
131<tr>
132<td class=heading>Layer-2/demarc node:</td>
133<td class=regular>
134<TMPL_IF maychange>
135<select name="node">
136 <option selected="selected">--</option>
137<TMPL_LOOP NAME=nodelist>
138 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
139</select>
140&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
141<TMPL_ELSE>
142<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
143</TMPL_IF>
144</td>
145</tr>
146
147<tr>
148<td class="heading">VLAN:</td>
149<td class="regular">
150<TMPL_IF maychange>
151<input type="text" name="vlan" value="<TMPL_VAR NAME=vlan>">
152<TMPL_ELSE>
153<TMPL_VAR NAME=vlan>
154</TMPL_IF>
155</td>
156</tr>
157
158<tr>
159<td class=heading>CustID:</td>
160<td class="regular">
161<TMPL_IF maychange>
162<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
163<TMPL_ELSE>
164<TMPL_VAR NAME=custid>
165</TMPL_IF>
166</td>
167</tr>
168
169<tr>
170<td class=heading>SWIPed?:</td>
171<td class=regular>
172<TMPL_IF swipable>
173<TMPL_IF maychange>
174<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
175<TMPL_ELSE>
176<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
177</TMPL_IF>
178<TMPL_ELSE>
179N/A
180</TMPL_IF>
181</td>
182</tr>
183
184<tr>
185<td class=heading>Last modified:</td>
186<td class=regular><TMPL_VAR NAME=lastmod></td>
187</tr>
188
189<tr>
190<td class="heading">Circuit ID:</td>
191<td class="regular">
192<TMPL_IF maychange>
193<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
194<TMPL_ELSE>
195<TMPL_VAR ESCAPE=HTML NAME=circid>
196</TMPL_IF>
197</td>
198</tr>
199
200<tr>
201<td class="heading">Description/Name:</td>
202<td class="regular">
203<TMPL_IF maychange>
204<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" size=72 class="regular">
205<TMPL_ELSE>
206<TMPL_VAR ESCAPE=HTML NAME=desc>
207</TMPL_IF>
208</td>
209</tr>
210
211<tr>
212<td class="heading" valign="top">Notes:</td>
213<td class="regular">
214<TMPL_IF maychange><textarea rows="8" cols="72" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
215<TMPL_ELSE>
216<TMPL_VAR ESCAPE=HTML NAME=notes>
217</TMPL_IF>
218</td>
219</tr>
220
221<TMPL_IF nocling>
222<tr>
223<td class="heading" valign="top">Restricted data:</td>
224<td class="regular">
225<TMPL_IF maychange>
226<textarea rows="8" cols="72" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
227<TMPL_ELSE>
228<TMPL_VAR ESCAPE=HTML NAME=privdata>
229</TMPL_IF>
230</td>
231</tr>
232
233<tr>
234<td class="heading">Configuration backup:</td>
235<td>
236<TMPL_IF maychange>
237<ul class="collapsible notalist"><li>
238<label for="backupfields">Device/assignment requires backup?</label>
239<input type="checkbox" id="backupfields" name="backupfields" <TMPL_IF hasbackup>checked="checked" </TMPL_IF>/>
240<ul class="notalist"><li>
241
242<table><tr><td>Brand:</td><td><input name="bkbrand" value="<TMPL_VAR NAME=bkbrand>"></td></tr>
243<tr><td>Model:</td><td><input name="bkmodel" value="<TMPL_VAR NAME=bkmodel>"></td></tr>
244<tr><td colspan="2">Optional settings if different from standard ones for the device type above</td></tr>
245<tr><td>Access method:</td><td><select name="bktype">
246<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
247<option<TMPL_IF bktelnet> selected="selected"</TMPL_IF>>telnet</option>
248</select></td></tr>
249<tr><td>Connect from:</td><td><input name="bksrc" value="<TMPL_VAR NAME=bksrc>"></td></tr>
250<tr><td>Username:</td><td><input name="bkuser" value="<TMPL_VAR NAME=bkuser>"></td></tr>
251<tr><td>VTY password:</td><td><input name="bkvpass" value="<TMPL_VAR NAME=bkvpass>"></td></tr>
252<tr><td>Enable password:</td><td><input name="bkepass" value="<TMPL_VAR NAME=bkepass>"></td></tr>
253<tr><td>Alternate port (if required):</td><td><input name="bkport" value="<TMPL_VAR NAME=bkport>"></td></tr>
254<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip" value="<TMPL_VAR NAME=bkip>"></td></tr>
255</table>
256
257</li></ul>
258</li></ul>
259<TMPL_ELSE>
260<td>Configuration backup:</td>
261<td>
262<TMPL_IF backupfields>
263Device will be backed up as below
264<table><tr><td>Brand:</td><td><TMPL_VAR NAME=bkbrand></td></tr>
265<tr><td>Model:</td><td><TMPL_VAR NAME=bkmodel></td></tr>
266<tr><td>Access method:</td><td><TMPL_VAR NAME=bktype></td></tr>
267<tr><td>Connect from:</td><td><TMPL_VAR NAME=bksrc></td></tr>
268<tr><td>Username:</td><td><TMPL_VAR NAME=bkuser></td></tr>
269<tr><td>VTY password:</td><td><TMPL_VAR NAME=bkvpass></td></tr>
270<tr><td>Enable password:</td><td><TMPL_VAR NAME=bkepass></td></tr>
271<tr><td>Port:</td><td><TMPL_VAR NAME=bkport></td></tr>
272</table>
273<TMPL_ELSE>
274Device/assignment not flagged for backup
275</TMPL_IF>
276
277</TMPL_IF>
278</td>
279</tr>
280
281</TMPL_IF>
282
283<TMPL_IF maychange>
284<tr>
285<td colspan="2" class="center">
286<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
287<input type="hidden" name="origrdns" value="<TMPL_VAR NAME=rdns>">
288<input type="submit" value=" Update this block " class="regular">
289</td>
290</tr>
291</TMPL_IF>
292</table>
293<TMPL_IF maychange>
294</fieldset>
295</form>
296</TMPL_IF>
297
298</td></tr>
299<tr>
300<td class="center">
301
302<div class="revdata">
303
304<TMPL_IF maymerge>
305<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
306<fieldset><legend class="noshow">&nbsp;</legend>
307<input type="hidden" name="action" value="merge">
308<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
309<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
310<div class="button_l">
311<input type="submit" value=" Merge with adjacent block(s) ">
312</div>
313</fieldset>
314</form>
315</TMPL_IF>
316
317<TMPL_IF maydel>
318<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
319<fieldset><legend class="noshow">&nbsp;</legend>
320<input type="hidden" name="action" value="delete">
321<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
322<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
323<input type=submit value=" Delete this block ">
324</fieldset>
325</form>
326</TMPL_IF>
327
328<TMPL_IF maysplit>
329<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
330<fieldset><legend class="noshow">&nbsp;</legend>
331<input type="hidden" name="action" value="split">
332<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
333<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
334<div class="button_r">
335<input type=submit value=" Split/shrink this block ">
336</div>
337</fieldset>
338</form>
339</TMPL_IF>
340
341</div>
342
343</td>
344
345</tr>
346</table>
347
348</div>
Note: See TracBrowser for help on using the repository browser.