source: branches/htmlform/templates/edit.tmpl@ 503

Last change on this file since 503 was 476, checked in by Kris Deugau, 14 years ago

/branches/htmlform

Convert finalDelete to template
Add missing node info on update page
Fix backlink on update page
Tweak edit page to use the right name for the node dropdown
See #3.

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