source: trunk/templates/edit.tmpl@ 619

Last change on this file since 619 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
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>">
[576]14<input type="hidden" name="rdepth" value="<TMPL_VAR NAME=rdepth>">
[469]15</TMPL_IF>
16
[470]17<table cellspacing="1">
[469]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">
[586]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">
[469]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
[586]47<tr class="row1">
[469]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>
[470]57<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
[469]58</TMPL_IF>
59</td>
60</tr>
61
[586]62<tr class="row0">
[469]63<td class=heading>Demarc/tower:</td>
64<td class=regular>
65<TMPL_IF typesupportsnodes>
66<TMPL_IF maychange>
[476]67<select name="node"><TMPL_UNLESS havenodeid>
[469]68 <option selected="selected">--</option></TMPL_UNLESS>
69<TMPL_LOOP NAME=nodelist>
[530]70 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[469]71</select>
72<TMPL_ELSE>
[470]73<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
[469]74</TMPL_IF>
75<TMPL_ELSE>
76N/A
77</TMPL_IF>
78</td>
79</tr>
80
[586]81<tr class="row1">
[469]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
[586]92<tr class="row0">
[469]93<td class=heading>SWIPed?:</td>
94<td class=regular>
[470]95<TMPL_IF swipable>
[469]96<TMPL_IF maychange>
[534]97<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
[469]98<TMPL_ELSE>
99<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
100</TMPL_IF>
[470]101<TMPL_ELSE>
102N/A
103</TMPL_IF>
[469]104</td>
105</tr>
106
[586]107<tr class="row1">
[469]108<td class=heading>Last modified:</td>
109<td class=regular><TMPL_VAR NAME=lastmod></td>
110</tr>
111
[586]112<tr class="row0">
[469]113<td class="heading">Circuit ID:</td>
114<td class="regular">
115<TMPL_IF maychange>
[534]116<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
[469]117<TMPL_ELSE>
[534]118<TMPL_VAR ESCAPE=HTML NAME=circid>
[469]119</TMPL_IF>
120</td>
121</tr>
122
[586]123<tr class="row1">
[469]124<td class="heading">Description/Name:</td>
125<td class="regular">
126<TMPL_IF maychange>
[534]127<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
[469]128<TMPL_ELSE>
[534]129<TMPL_VAR ESCAPE=HTML NAME=desc>
[469]130</TMPL_IF>
131</td>
132</tr>
133
[586]134<tr class="row0">
[469]135<td class="heading" valign="top">Notes:</td>
136<td class="regular">
[534]137<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
[469]138<TMPL_ELSE>
[534]139<TMPL_VAR ESCAPE=HTML NAME=notes>
[469]140</TMPL_IF>
141</td>
142</tr>
143
144<TMPL_IF nocling>
[586]145<tr class="row1">
[470]146<td class="heading" valign="top">Restricted data:</td>
147<td class="regular">
[469]148<TMPL_IF maychange>
[534]149<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
[469]150<TMPL_ELSE>
[534]151<TMPL_VAR ESCAPE=HTML NAME=privdata>
[469]152</TMPL_IF>
153</td>
154</tr>
155</TMPL_IF>
156
157<TMPL_IF maychange>
[586]158<tr class="row<TMPL_IF nocling>0<TMPL_ELSE>1</TMPL_IF>">
[470]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>
[469]166</fieldset>
167</form>
168</TMPL_IF>
169
170<TMPL_IF maydel>
[470]171</td></tr>
172<tr><td class="center">
[469]173<form method="POST" action="main.cgi">
[513]174<fieldset><legend class="noshow">&nbsp;</legend>
[586]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>">
[469]176<input type="hidden" name="action" value="delete">
[470]177<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
[576]178<input type="hidden" name="rdepth" value="<TMPL_VAR NAME=rdepth>">
[469]179<input type=submit value=" Delete this block ">
180</div>
[470]181</fieldset>
[469]182</form>
183</TMPL_IF>
[470]184
[469]185</td>
186</tr>
187</table>
188
189</div>
Note: See TracBrowser for help on using the repository browser.