source: trunk/templates/edit.tmpl@ 660

Last change on this file since 660 was 634, checked in by Kris Deugau, 10 years ago

/trunk

Commit 8/mumble for work done intermittently over the past ~year.
See #5, comment 25:

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