source: trunk/templates/edit.tmpl@ 789

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

/trunk

Update edit page to show backup fields. See #52.

File size: 8.7 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>
[786]20<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>
[705]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>
[767]40<TMPL_IF showrev>
[586]41<td class="regular">
[675]42Pattern: <TMPL_IF maychange>
[586]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">
[675]48<TMPL_IF cached>(cached)</TMPL_IF>
49<TMPL_IF r_iplist>
50<div class="rdns revdata">
[786]51<ul class="collapsible nocheckbox notalist">
[675]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>
[586]71</td>
[767]72<TMPL_ELSE>
73<td>Reverse DNS information not currently available for this netblock</td>
74</TMPL_IF>
[586]75</tr>
76
[687]77<tr>
[469]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
[687]88<tr>
[469]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>
[470]98<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]99</TMPL_IF>
100</td>
101</tr>
102
[687]103<tr>
[634]104<td class=heading>Layer-2/demarc node:</td>
[469]105<td class=regular>
106<TMPL_IF maychange>
[634]107<select name="node">
108 <option selected="selected">--</option>
[469]109<TMPL_LOOP NAME=nodelist>
[530]110 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]111</select>
[634]112&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
[469]113<TMPL_ELSE>
[470]114<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]115</TMPL_IF>
116</td>
117</tr>
118
[687]119<tr>
[691]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>
[469]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
[687]152<tr>
[469]153<td class=heading>SWIPed?:</td>
154<td class=regular>
[470]155<TMPL_IF swipable>
[469]156<TMPL_IF maychange>
[534]157<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]158<TMPL_ELSE>
159<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
160</TMPL_IF>
[470]161<TMPL_ELSE>
162N/A
163</TMPL_IF>
[469]164</td>
165</tr>
166
[687]167<tr>
[469]168<td class=heading>Last modified:</td>
169<td class=regular><TMPL_VAR NAME=lastmod></td>
170</tr>
171
[687]172<tr>
[469]173<td class="heading">Circuit ID:</td>
174<td class="regular">
175<TMPL_IF maychange>
[534]176<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]177<TMPL_ELSE>
[534]178<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]179</TMPL_IF>
180</td>
181</tr>
182
[687]183<tr>
[469]184<td class="heading">Description/Name:</td>
185<td class="regular">
186<TMPL_IF maychange>
[534]187<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
[469]188<TMPL_ELSE>
[534]189<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]190</TMPL_IF>
191</td>
192</tr>
193
[687]194<tr>
[469]195<td class="heading" valign="top">Notes:</td>
196<td class="regular">
[534]197<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]198<TMPL_ELSE>
[534]199<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]200</TMPL_IF>
201</td>
202</tr>
203
204<TMPL_IF nocling>
[687]205<tr>
[470]206<td class="heading" valign="top">Restricted data:</td>
207<td class="regular">
[469]208<TMPL_IF maychange>
[781]209<textarea rows="8" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]210<TMPL_ELSE>
[534]211<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]212</TMPL_IF>
213</td>
214</tr>
[786]215
216<tr>
217<td class="heading">Configuration backup:</td>
218<td>
219<TMPL_IF maychange>
220<ul class="collapsible notalist"><li>
221<label for="backupfields">Device/assignment requires backup?</label>
222<input type="checkbox" id="backupfields" name="backupfields" <TMPL_IF hasbackup>checked="checked" </TMPL_IF>/>
223<ul class="notalist"><li>
224
225<table><tr><td>Brand:</td><td><input name="bkbrand" value="<TMPL_VAR NAME=bkbrand>"></td></tr>
226<tr><td>Model:</td><td><input name="bkmodel" value="<TMPL_VAR NAME=bkmodel>"></td></tr>
227<tr><td colspan="2">Optional settings if different from standard ones for the device type above</td></tr>
228<tr><td>Access method:</td><td><select name="bktype">
229<option<TMPL_IF bktelnet> selected="selected"</TMPL_IF>>telnet</option>
230<option<TMPL_IF bkssh> selected="selected"</TMPL_IF>>SSH</option>
231</select></td></tr>
232<tr><td>Connect from:</td><td><input name="bksrc" value="<TMPL_VAR NAME=bksrc>"></td></tr>
233<tr><td>Username:</td><td><input name="bkuser" value="<TMPL_VAR NAME=bkuser>"></td></tr>
234<tr><td>VTY password:</td><td><input name="bkvpass" value="<TMPL_VAR NAME=bkvpass>"></td></tr>
235<tr><td>Enable password:</td><td><input name="bkepass" value="<TMPL_VAR NAME=bkepass>"></td></tr>
236<tr><td>Alternate port (if required):</td><td><input name="bkport" value="<TMPL_VAR NAME=bkport>"></td></tr>
237</table>
238
239</li></ul>
240</li></ul>
241<TMPL_ELSE>
242<td>Configuration backup:</td>
243<td>
244<TMPL_IF backupfields>
245Device will be backed up as below
246<table><tr><td>Brand:</td><td><TMPL_VAR NAME=bkbrand></td></tr>
247<tr><td>Model:</td><td><TMPL_VAR NAME=bkmodel></td></tr>
248<tr><td>Access method:</td><td><TMPL_VAR NAME=bktype></td></tr>
249<tr><td>Connect from:</td><td><TMPL_VAR NAME=bksrc></td></tr>
250<tr><td>Username:</td><td><TMPL_VAR NAME=bkuser></td></tr>
251<tr><td>VTY password:</td><td><TMPL_VAR NAME=bkvpass></td></tr>
252<tr><td>Enable password:</td><td><TMPL_VAR NAME=bkepass></td></tr>
253<tr><td>Port:</td><td><TMPL_VAR NAME=bkport></td></tr>
254</table>
255<TMPL_ELSE>
256Device/assignment not flagged for backup
[469]257</TMPL_IF>
258
[786]259</TMPL_IF>
260</td>
261</tr>
262
263</TMPL_IF>
264
[469]265<TMPL_IF maychange>
[687]266<tr>
[470]267<td colspan="2" class="center">
[634]268<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[470]269<input type="submit" value=" Update this block " class="regular">
270</td>
271</tr>
272</TMPL_IF>
273</table>
274<TMPL_IF maychange>
[469]275</fieldset>
276</form>
277</TMPL_IF>
278
[470]279</td></tr>
[702]280<tr>
281<td class="center">
282
283<div class="revdata">
284
285<TMPL_IF maymerge>
286<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
[513]287<fieldset><legend class="noshow">&nbsp;</legend>
[702]288<input type="hidden" name="action" value="merge">
289<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
290<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
291<div class="button_l">
292<input type="submit" value=" Merge with adjacent block(s) ">
293</div>
294</fieldset>
295</form>
296</TMPL_IF>
297
298<TMPL_IF maydel>
299<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
300<fieldset><legend class="noshow">&nbsp;</legend>
[469]301<input type="hidden" name="action" value="delete">
[634]302<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
303<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
[469]304<input type=submit value=" Delete this block ">
[702]305</fieldset>
306</form>
307</TMPL_IF>
308
309<TMPL_IF maysplit>
310<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
311<fieldset><legend class="noshow">&nbsp;</legend>
312<input type="hidden" name="action" value="split">
313<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
314<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
315<div class="button_r">
316<input type=submit value=" Split/shrink this block ">
[469]317</div>
[470]318</fieldset>
[469]319</form>
320</TMPL_IF>
[470]321
[702]322</div>
323
[469]324</td>
[702]325
[469]326</tr>
327</table>
328
329</div>
Note: See TracBrowser for help on using the repository browser.