source: trunk/templates/edit.tmpl@ 738

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

/trunk

  • Complete internal handling for "shrink block". See #7 (more or less).
  • Add "breadcrumb" navigation fragments to split/shrink prep and do pages
  • Add link to pool IP list on edit and split/shrink prep pages
  • Shave off some useless code showing the split results
  • Catch the theoretically impossible case of "no subact value" on submitting split/shrink form

Still need to add calls to monkey rDNS on split/shrink changes

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