source: trunk/templates/edit.tmpl@ 592

Last change on this file since 592 was 586, checked in by Kris Deugau, 12 years ago

/trunk

Add rDNS to edit allocation part 1 - retrieve information for
the edit page. See #1.

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