source: branches/stable/templates/edit.tmpl@ 951

Last change on this file since 951 was 598, checked in by Kris Deugau, 11 years ago

/branches/stable

Introduce informational VRF tags on allocations to match uncomitted patch
in production.
Also add a minor main.cgi error-log-cleanup hack around deleting routed
blocks and master blocks instead of bending getBlockData() out of shape
only to have to put it back when the database structure changes get merged.

File size: 4.4 KB
RevLine 
[512]1<TMPL_IF webpath></TMPL_IF>
[469]2<div class="indent">
3<div class="heading">Edit the information below</div>
4
[470]5<table cellpadding="0" cellspacing="0">
[469]6<tr>
7<td>
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">
13<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
14</TMPL_IF>
15
[470]16<table cellspacing="1">
[469]17
18<tr class="row0">
19<td class=heading>IP block:</td>
20<td class="regular"><TMPL_VAR NAME=block></td>
21</tr>
22
23<tr class="row1">
24<td class=heading>City:</td>
25<td class="regular">
26<TMPL_IF maychange>
27<input type=text name=city value="<TMPL_VAR NAME=city>">
28<TMPL_ELSE>
29<TMPL_VAR NAME=city>
30</TMPL_IF>
31</td>
32</tr>
33
34<tr class="row0">
35<td class=heading>Type:</td>
36<td class=regular>
37<TMPL_IF changetype>
38<select name=alloctype>
39<TMPL_LOOP name=alloctype> <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=type>"><TMPL_VAR NAME=disptype></option>
40</TMPL_LOOP>
41</select>
42<TMPL_ELSE>
43<TMPL_VAR NAME=disptype>
[470]44<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]45</TMPL_IF>
46</td>
47</tr>
48
49<tr class="row1">
50<td class=heading>Demarc/tower:</td>
51<td class=regular>
52<TMPL_IF typesupportsnodes>
53<TMPL_IF maychange>
[476]54<select name="node"><TMPL_UNLESS havenodeid>
[469]55 <option selected="selected">--</option></TMPL_UNLESS>
56<TMPL_LOOP NAME=nodelist>
[594]57 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]58</select>
59<TMPL_ELSE>
[470]60<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]61</TMPL_IF>
62<TMPL_ELSE>
63N/A
64</TMPL_IF>
65</td>
66</tr>
67
68<tr class="row0">
[598]69<td class=heading>VRF instance:</td>
70<td class="regular">
71<TMPL_IF maychange>
72<input type="text" name="vrf" value="<TMPL_VAR NAME=vrf>">
73<TMPL_ELSE>
74<TMPL_VAR NAME=vrf>
75</TMPL_IF>
76</td>
77</tr>
78
79<tr class="row1">
[469]80<td class=heading>CustID:</td>
81<td class="regular">
82<TMPL_IF maychange>
83<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
84<TMPL_ELSE>
85<TMPL_VAR NAME=custid>
86</TMPL_IF>
87</td>
88</tr>
89
[598]90<tr class="row0">
[469]91<td class=heading>SWIPed?:</td>
92<td class=regular>
[470]93<TMPL_IF swipable>
[469]94<TMPL_IF maychange>
[594]95<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]96<TMPL_ELSE>
97<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
98</TMPL_IF>
[470]99<TMPL_ELSE>
100N/A
101</TMPL_IF>
[469]102</td>
103</tr>
104
[598]105<tr class="row1">
[469]106<td class=heading>Last modified:</td>
107<td class=regular><TMPL_VAR NAME=lastmod></td>
108</tr>
109
[598]110<tr class="row0">
[469]111<td class="heading">Circuit ID:</td>
112<td class="regular">
113<TMPL_IF maychange>
[594]114<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]115<TMPL_ELSE>
[594]116<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]117</TMPL_IF>
118</td>
119</tr>
120
[598]121<tr class="row1">
[469]122<td class="heading">Description/Name:</td>
123<td class="regular">
124<TMPL_IF maychange>
[594]125<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
[469]126<TMPL_ELSE>
[594]127<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]128</TMPL_IF>
129</td>
130</tr>
131
[598]132<tr class="row0">
[469]133<td class="heading" valign="top">Notes:</td>
134<td class="regular">
[594]135<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]136<TMPL_ELSE>
[594]137<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]138</TMPL_IF>
139</td>
140</tr>
141
142<TMPL_IF nocling>
[598]143<tr class="row1">
[470]144<td class="heading" valign="top">Restricted data:</td>
145<td class="regular">
[469]146<TMPL_IF maychange>
[594]147<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]148<TMPL_ELSE>
[594]149<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]150</TMPL_IF>
151</td>
152</tr>
153</TMPL_IF>
154
155<TMPL_IF maychange>
[598]156<tr class="row<TMPL_IF nocling>0<TMPL_ELSE>1</TMPL_IF>">
[470]157<td colspan="2" class="center">
158<input type="submit" value=" Update this block " class="regular">
159</td>
160</tr>
161</TMPL_IF>
162</table>
163<TMPL_IF maychange>
[469]164</fieldset>
165</form>
166</TMPL_IF>
167
168<TMPL_IF maydel>
[470]169</td></tr>
170<tr><td class="center">
[469]171<form method="POST" action="main.cgi">
[513]172<fieldset><legend class="noshow">&nbsp;</legend>
[598]173<div class="row<TMPL_IF nocling><TMPL_IF maychange>1<TMPL_ELSE>0</TMPL_IF><TMPL_ELSE><TMPL_IF maychange>0<TMPL_ELSE>1</TMPL_IF></TMPL_IF>">
[469]174<input type="hidden" name="action" value="delete">
[470]175<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
176<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]177<input type=submit value=" Delete this block ">
178</div>
[470]179</fieldset>
[469]180</form>
181</TMPL_IF>
[470]182
[469]183</td>
184</tr>
185</table>
186
187</div>
Note: See TracBrowser for help on using the repository browser.