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

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

/branches/htmlform

Checkpoint - convert editDisplay.html to template
Still need to finish type dropdown
Still need to clean up formatting, tr/div/form nesting/classes,
etc around buttons and restricted data
See #3

File size: 3.6 KB
Line 
1<div class="indent">
2<div class="heading">Edit the information below</div>
3
4<!-- table class="indent" size="33%" cellspacing=1 bgcolor="black" -->
5
6<table>
7<tr>
8<td>
9
10<TMPL_IF maychange>
11<form method="POST" action="main.cgi">
12<fieldset><legend></legend>
13<input type="hidden" name="action" value="update">
14<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
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</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=demarc><TMPL_UNLESS havenodeid>
55 <option selected="selected">--</option></TMPL_UNLESS>
56<TMPL_LOOP NAME=nodelist>
57 <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=nodeid>"><TMPL_VAR NAME=nodename></option></TMPL_LOOP>
58</select>
59<TMPL_ELSE>
60<TMPL_VAR NAME=nodename>
61</TMPL_IF>
62<TMPL_ELSE>
63N/A
64</TMPL_IF>
65</td>
66</tr>
67
68<tr class="row0">
69<td class=heading>CustID:</td>
70<td class="regular">
71<TMPL_IF maychange>
72<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
73<TMPL_ELSE>
74<TMPL_VAR NAME=custid>
75</TMPL_IF>
76</td>
77</tr>
78
79<tr class="row1">
80<td class=heading>SWIPed?:</td>
81<td class=regular>
82<TMPL_IF maychange>
83<input type=checkbox name=swip <TMPL_IF swip>checked=yes</TMPL_IF>>
84<TMPL_ELSE>
85<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
86</TMPL_IF>
87</td>
88</tr>
89
90<tr class="row0">
91<td class=heading>Last modified:</td>
92<td class=regular><TMPL_VAR NAME=lastmod></td>
93</tr>
94
95<tr class="row1">
96<td class="heading">Circuit ID:</td>
97<td class="regular">
98<TMPL_IF maychange>
99<input type="text" name="circid" value="<TMPL_VAR NAME=circid>" maxlength=64 size=64 class="regular">
100<TMPL_ELSE>
101<TMPL_VAR NAME=circid>
102</TMPL_IF>
103</td>
104</tr>
105
106<tr class="row0">
107<td class="heading">Description/Name:</td>
108<td class="regular">
109<TMPL_IF maychange>
110<input type="text" name="desc" value="<TMPL_VAR NAME=desc>" maxlength=64 size=64 class="regular">
111<TMPL_ELSE>
112<TMPL_VAR NAME=desc>
113</TMPL_IF>
114</td>
115</tr>
116
117<tr class="row1">
118<td class="heading" valign="top">Notes:</td>
119<td class="regular">
120<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR NAME=notes></textarea>
121<TMPL_ELSE>
122<TMPL_VAR NAME=notes>
123</TMPL_IF>
124</td>
125</tr>
126
127<TMPL_IF nocling>
128<tr class="row0">
129<td class=heading>Restricted data:</td>
130<td class=regular>
131<TMPL_IF maychange>
132<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR NAME=privdata></textarea>
133<TMPL_ELSE>
134<TMPL_VAR NAME=privdata>
135</TMPL_IF>
136</td>
137</tr>
138</TMPL_IF>
139</table>
140
141<TMPL_IF maychange>
142<div class="row0"><input type="submit" value=" Update this block " class="regular"></div>
143</fieldset>
144</form>
145</TMPL_IF>
146
147<TMPL_IF maydel>
148<form method="POST" action="main.cgi">
149<div class="row1">
150<input type="hidden" name="action" value="delete">
151<input type="hidden" name="block" value="1.2.14.24/29">
152<input type="hidden" name="alloctype" value="me">
153<input type=submit value=" Delete this block ">
154</div>
155</form>
156</TMPL_IF>
157</td>
158</tr>
159</table>
160
161</div>
Note: See TracBrowser for help on using the repository browser.