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

Last change on this file since 887 was 598, checked in by Kris Deugau, 12 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
Line 
1<TMPL_IF webpath></TMPL_IF>
2<div class="indent">
3<div class="heading">Edit the information below</div>
4
5<table cellpadding="0" cellspacing="0">
6<tr>
7<td>
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=block>">
14</TMPL_IF>
15
16<table cellspacing="1">
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>
44<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
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>
54<select name="node"><TMPL_UNLESS havenodeid>
55 <option selected="selected">--</option></TMPL_UNLESS>
56<TMPL_LOOP NAME=nodelist>
57 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
58</select>
59<TMPL_ELSE>
60<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
61</TMPL_IF>
62<TMPL_ELSE>
63N/A
64</TMPL_IF>
65</td>
66</tr>
67
68<tr class="row0">
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">
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
90<tr class="row0">
91<td class=heading>SWIPed?:</td>
92<td class=regular>
93<TMPL_IF swipable>
94<TMPL_IF maychange>
95<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
96<TMPL_ELSE>
97<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
98</TMPL_IF>
99<TMPL_ELSE>
100N/A
101</TMPL_IF>
102</td>
103</tr>
104
105<tr class="row1">
106<td class=heading>Last modified:</td>
107<td class=regular><TMPL_VAR NAME=lastmod></td>
108</tr>
109
110<tr class="row0">
111<td class="heading">Circuit ID:</td>
112<td class="regular">
113<TMPL_IF maychange>
114<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
115<TMPL_ELSE>
116<TMPL_VAR ESCAPE=HTML NAME=circid>
117</TMPL_IF>
118</td>
119</tr>
120
121<tr class="row1">
122<td class="heading">Description/Name:</td>
123<td class="regular">
124<TMPL_IF maychange>
125<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
126<TMPL_ELSE>
127<TMPL_VAR ESCAPE=HTML NAME=desc>
128</TMPL_IF>
129</td>
130</tr>
131
132<tr class="row0">
133<td class="heading" valign="top">Notes:</td>
134<td class="regular">
135<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
136<TMPL_ELSE>
137<TMPL_VAR ESCAPE=HTML NAME=notes>
138</TMPL_IF>
139</td>
140</tr>
141
142<TMPL_IF nocling>
143<tr class="row1">
144<td class="heading" valign="top">Restricted data:</td>
145<td class="regular">
146<TMPL_IF maychange>
147<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
148<TMPL_ELSE>
149<TMPL_VAR ESCAPE=HTML NAME=privdata>
150</TMPL_IF>
151</td>
152</tr>
153</TMPL_IF>
154
155<TMPL_IF maychange>
156<tr class="row<TMPL_IF nocling>0<TMPL_ELSE>1</TMPL_IF>">
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>
164</fieldset>
165</form>
166</TMPL_IF>
167
168<TMPL_IF maydel>
169</td></tr>
170<tr><td class="center">
171<form method="POST" action="main.cgi">
172<fieldset><legend class="noshow">&nbsp;</legend>
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>">
174<input type="hidden" name="action" value="delete">
175<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
176<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
177<input type=submit value=" Delete this block ">
178</div>
179</fieldset>
180</form>
181</TMPL_IF>
182
183</td>
184</tr>
185</table>
186
187</div>
Note: See TracBrowser for help on using the repository browser.