source: trunk/templates/edit.tmpl@ 739

Last change on this file since 739 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
RevLine 
[512]1<TMPL_IF webpath></TMPL_IF>
[469]2<div class="indent">
3
[470]4<table cellpadding="0" cellspacing="0">
[687]5
[469]6<tr>
[702]7<td colspan="3">
[469]8
9<TMPL_IF maychange>
10<form method="POST" action="main.cgi">
[513]11<fieldset><legend class="noshow">&nbsp;</legend>
[469]12<input type="hidden" name="action" value="update">
[634]13<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
[469]14</TMPL_IF>
15
[687]16<table class="altrows" cellspacing="1">
[705]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>
[469]22
[687]23<tr>
[469]24<td class=heading>IP block:</td>
25<td class="regular"><TMPL_VAR NAME=block></td>
26</tr>
27
[695]28<TMPL_IF reserve>
[687]29<tr>
[695]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>
[675]39<td class="heading">Reverse DNS:</td>
[586]40<td class="regular">
[675]41Pattern: <TMPL_IF maychange>
[586]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">
[675]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>
[586]70</td>
71</tr>
72
[687]73<tr>
[469]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
[687]84<tr>
[469]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>
[470]94<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]95</TMPL_IF>
96</td>
97</tr>
98
[687]99<tr>
[634]100<td class=heading>Layer-2/demarc node:</td>
[469]101<td class=regular>
102<TMPL_IF maychange>
[634]103<select name="node">
104 <option selected="selected">--</option>
[469]105<TMPL_LOOP NAME=nodelist>
[530]106 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]107</select>
[634]108&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
[469]109<TMPL_ELSE>
[470]110<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]111</TMPL_IF>
112</td>
113</tr>
114
[687]115<tr>
[691]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>
[469]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
[687]148<tr>
[469]149<td class=heading>SWIPed?:</td>
150<td class=regular>
[470]151<TMPL_IF swipable>
[469]152<TMPL_IF maychange>
[534]153<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]154<TMPL_ELSE>
155<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
156</TMPL_IF>
[470]157<TMPL_ELSE>
158N/A
159</TMPL_IF>
[469]160</td>
161</tr>
162
[687]163<tr>
[469]164<td class=heading>Last modified:</td>
165<td class=regular><TMPL_VAR NAME=lastmod></td>
166</tr>
167
[687]168<tr>
[469]169<td class="heading">Circuit ID:</td>
170<td class="regular">
171<TMPL_IF maychange>
[534]172<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]173<TMPL_ELSE>
[534]174<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]175</TMPL_IF>
176</td>
177</tr>
178
[687]179<tr>
[469]180<td class="heading">Description/Name:</td>
181<td class="regular">
182<TMPL_IF maychange>
[534]183<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
[469]184<TMPL_ELSE>
[534]185<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]186</TMPL_IF>
187</td>
188</tr>
189
[687]190<tr>
[469]191<td class="heading" valign="top">Notes:</td>
192<td class="regular">
[534]193<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]194<TMPL_ELSE>
[534]195<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]196</TMPL_IF>
197</td>
198</tr>
199
200<TMPL_IF nocling>
[687]201<tr>
[470]202<td class="heading" valign="top">Restricted data:</td>
203<td class="regular">
[469]204<TMPL_IF maychange>
[534]205<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]206<TMPL_ELSE>
[534]207<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]208</TMPL_IF>
209</td>
210</tr>
211</TMPL_IF>
212
213<TMPL_IF maychange>
[687]214<tr>
[470]215<td colspan="2" class="center">
[634]216<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[470]217<input type="submit" value=" Update this block " class="regular">
218</td>
219</tr>
220</TMPL_IF>
221</table>
222<TMPL_IF maychange>
[469]223</fieldset>
224</form>
225</TMPL_IF>
226
[470]227</td></tr>
[702]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">
[513]235<fieldset><legend class="noshow">&nbsp;</legend>
[702]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>
[469]249<input type="hidden" name="action" value="delete">
[634]250<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
251<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[469]252<input type=submit value=" Delete this block ">
[702]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 ">
[469]265</div>
[470]266</fieldset>
[469]267</form>
268</TMPL_IF>
[470]269
[702]270</div>
271
[469]272</td>
[702]273
[469]274</tr>
275</table>
276
277</div>
Note: See TracBrowser for help on using the repository browser.