source: trunk/templates/edit.tmpl@ 585

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

/trunk

Work in progress, see #5:
Update templates and calling code for allocation update to pass
around rdepth as needed, and to set some breadcrumbs-lite to
make it easier to get back where you were

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