source: trunk/templates/edit.tmpl@ 687

Last change on this file since 687 was 687, checked in by Kris Deugau, 9 years ago

/trunk

CSS and layout cleanup, sort of. Convert tables with alternating row
colours to pure CSS (mainly to make addition of future fields, and future
*optional* or restricted-access fields, much easier). Play a little loose
with table structure to let headings and in-page "titles" continue to show
the main background colour instead of the "first line of the table" colour.

File size: 4.8 KB
Line 
1<TMPL_IF webpath></TMPL_IF>
2<div class="indent">
3
4<table cellpadding="0" cellspacing="0">
5
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=id>">
14</TMPL_IF>
15
16<table class="altrows" cellspacing="1">
17<tr class="heading"><td>Edit the information below</td></tr>
18
19<tr>
20<td class=heading>IP block:</td>
21<td class="regular"><TMPL_VAR NAME=block></td>
22</tr>
23
24<tr>
25<td class="heading">Reverse DNS:</td>
26<td class="regular">
27Pattern: <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<TMPL_IF cached>(cached)</TMPL_IF>
34<TMPL_IF r_iplist>
35<div class="rdns revdata">
36<ul class="collapsible notalist">
37<li>
38<label for="per-iplist">Per-IP reverse entries (click to show) <img src="<TMPL_VAR NAME=webpath>/images/tree_open.png"></label>
39<input type="checkbox" id="per-iplist" />
40<ul class="notalist">
41<li>
42<table>
43<TMPL_LOOP name="r_iplist">
44<tr>
45<td><TMPL_VAR NAME=r_ip></td>
46<td><input class="host" name="host_<TMPL_VAR NAME=r_ip>" value="<TMPL_VAR NAME=iphost>"></td>
47</tr>
48</TMPL_LOOP>
49</table>
50</li>
51</ul>
52</li>
53</ul>
54</div>
55</TMPL_IF>
56</td>
57</tr>
58
59<tr>
60<td class=heading>City:</td>
61<td class="regular">
62<TMPL_IF maychange>
63<input type=text name=city value="<TMPL_VAR NAME=city>">
64<TMPL_ELSE>
65<TMPL_VAR NAME=city>
66</TMPL_IF>
67</td>
68</tr>
69
70<tr>
71<td class=heading>Type:</td>
72<td class=regular>
73<TMPL_IF changetype>
74<select name=alloctype>
75<TMPL_LOOP name=alloctype> <option <TMPL_IF selme>selected="selected"</TMPL_IF> value="<TMPL_VAR NAME=type>"><TMPL_VAR NAME=disptype></option>
76</TMPL_LOOP>
77</select>
78<TMPL_ELSE>
79<TMPL_VAR NAME=disptype>
80<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
81</TMPL_IF>
82</td>
83</tr>
84
85<tr>
86<td class=heading>Layer-2/demarc node:</td>
87<td class=regular>
88<TMPL_IF maychange>
89<select name="node">
90 <option selected="selected">--</option>
91<TMPL_LOOP NAME=nodelist>
92 <option value="<TMPL_VAR NAME=node_id>"<TMPL_IF selme> selected</TMPL_IF>><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
93</select>
94&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
95<TMPL_ELSE>
96<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
97</TMPL_IF>
98</td>
99</tr>
100
101<tr>
102<td class=heading>CustID:</td>
103<td class="regular">
104<TMPL_IF maychange>
105<input type=text name=custid value="<TMPL_VAR NAME=custid>" maxlength=15 class="regular">
106<TMPL_ELSE>
107<TMPL_VAR NAME=custid>
108</TMPL_IF>
109</td>
110</tr>
111
112<tr>
113<td class=heading>SWIPed?:</td>
114<td class=regular>
115<TMPL_IF swipable>
116<TMPL_IF maychange>
117<input type="checkbox" name="swip"<TMPL_IF swip> checked="checked"</TMPL_IF>>
118<TMPL_ELSE>
119<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
120</TMPL_IF>
121<TMPL_ELSE>
122N/A
123</TMPL_IF>
124</td>
125</tr>
126
127<tr>
128<td class=heading>Last modified:</td>
129<td class=regular><TMPL_VAR NAME=lastmod></td>
130</tr>
131
132<tr>
133<td class="heading">Circuit ID:</td>
134<td class="regular">
135<TMPL_IF maychange>
136<input type="text" name="circid" value="<TMPL_VAR ESCAPE=HTML NAME=circid>" maxlength=64 size=64 class="regular">
137<TMPL_ELSE>
138<TMPL_VAR ESCAPE=HTML NAME=circid>
139</TMPL_IF>
140</td>
141</tr>
142
143<tr>
144<td class="heading">Description/Name:</td>
145<td class="regular">
146<TMPL_IF maychange>
147<input type="text" name="desc" value="<TMPL_VAR ESCAPE=HTML NAME=desc>" maxlength=64 size=64 class="regular">
148<TMPL_ELSE>
149<TMPL_VAR ESCAPE=HTML NAME=desc>
150</TMPL_IF>
151</td>
152</tr>
153
154<tr>
155<td class="heading" valign="top">Notes:</td>
156<td class="regular">
157<TMPL_IF maychange><textarea rows="8" cols="64" name="notes" class="regular"><TMPL_VAR ESCAPE=HTML NAME=notes></textarea>
158<TMPL_ELSE>
159<TMPL_VAR ESCAPE=HTML NAME=notes>
160</TMPL_IF>
161</td>
162</tr>
163
164<TMPL_IF nocling>
165<tr>
166<td class="heading" valign="top">Restricted data:</td>
167<td class="regular">
168<TMPL_IF maychange>
169<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR ESCAPE=HTML NAME=privdata></textarea>
170<TMPL_ELSE>
171<TMPL_VAR ESCAPE=HTML NAME=privdata>
172</TMPL_IF>
173</td>
174</tr>
175</TMPL_IF>
176
177<TMPL_IF maychange>
178<tr>
179<td colspan="2" class="center">
180<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
181<input type="submit" value=" Update this block " class="regular">
182</td>
183</tr>
184</TMPL_IF>
185</table>
186<TMPL_IF maychange>
187</fieldset>
188</form>
189</TMPL_IF>
190
191<TMPL_IF maydel>
192</td></tr>
193<tr><td class="center">
194<form method="POST" action="main.cgi">
195<fieldset><legend class="noshow">&nbsp;</legend>
196<div class="revdata">
197<input type="hidden" name="action" value="delete">
198<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
199<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
200<input type=submit value=" Delete this block ">
201</div>
202</fieldset>
203</form>
204</TMPL_IF>
205
206</td>
207</tr>
208</table>
209
210</div>
Note: See TracBrowser for help on using the repository browser.