source: trunk/templates/edit.tmpl@ 785

Last change on this file since 785 was 781, checked in by Kris Deugau, 9 years ago

/trunk

Set height and width of "Notes" and "Restricted data" fields on assign/edit
pages to the same 8x64 for consistency, as per request.

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