source: branches/htmlform/templates/assign.tmpl@ 934

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

/branches/htmlform

Finally dug up a least-nasty way to effectively get rid of the
useless <legend> tag (required in a <fieldset>, in turn required
in a <form>, if you want to be valid HTML 4.01 Strict).
See #3.

File size: 3.3 KB
Line 
1<div class="indent">
2<TMPL_IF block>
3<div class="tblsubtitle">
4Assign free <TMPL_IF iscontained><TMPL_VAR NAME=fbdisptype></TMPL_IF> block <TMPL_VAR NAME=block>
5</div>
6<TMPL_ELSE>
7<div class="tblsubtitle">Assign IPs</div>
8</TMPL_IF>
9<br>
10
11<form method="post" action="main.cgi" class="regular">
12<fieldset><legend class="noshow">&nbsp;</legend>
13
14<TMPL_IF block>
15<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
16<input type="hidden" name="fbassign" value="y">
17</TMPL_IF>
18
19<table class="regular" cellspacing="1" cellpadding="1">
20
21<tr class="row0">
22<td>Customer location:</td>
23<td>
24<select name="city">
25 <option selected="selected">-</option>
26<TMPL_LOOP NAME=citylist>
27 <option><TMPL_VAR NAME=city></option></TMPL_LOOP>
28</select>
29&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a>
30</td>
31</tr>
32
33<tr class="row1">
34<td>Allocation type:</td>
35<td>
36<TMPL_IF iscontained>
37<TMPL_VAR NAME=fbdisptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
38<TMPL_ELSE>
39<select name="alloctype">
40<TMPL_LOOP name=typelist>
41 <option value="<TMPL_VAR NAME=tval>"<TMPL_VAR NAME=sel>><TMPL_VAR NAME=type></option></TMPL_LOOP>
42</select>
43<input type="button" value=" ? " onclick="helpAllocTypes()" class="regular">
44</TMPL_IF>
45</td>
46</tr>
47
48<TMPL_UNLESS block>
49<tr class="row0">
50<td>Subnet CIDR mask length:</td>
51<td valign="top">&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3"></td>
52</tr>
53</TMPL_UNLESS>
54
55<tr class="<TMPL_VAR NAME=rowa>">
56<td>Customer ID:</td>
57<td><input type="text" name="custid" size="15" maxlength="15"> (Only required for Customer allocations)</td>
58</tr>
59
60<tr class="<TMPL_VAR NAME=rowb>">
61<td>Wifi tower/Fibre demarc</td>
62<td>
63<select name="node">
64 <option selected="selected">-</option>
65<TMPL_LOOP NAME=nodelist>
66 <option value="<TMPL_VAR NAME=nid>"><TMPL_VAR NAME=nname></option></TMPL_LOOP>
67</select>
68&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new location</a>
69</td>
70</tr>
71
72<TMPL_UNLESS block>
73<tr class="<TMPL_VAR NAME=rowa>">
74<td>Route from/through:</td>
75<td>
76<select name="pop">
77 <option selected value="">-</option>
78<TMPL_LOOP NAME=pops>
79 <option><TMPL_VAR NAME=pop></option></TMPL_LOOP>
80</select>
81</td>
82</tr>
83
84<tr class="<TMPL_VAR NAME=rowb>">
85<td>Route/allocate from this master:&nbsp;</td>
86<td>
87<select name="allocfrom">
88 <option selected="selected">-</option>
89<TMPL_LOOP NAME=masterlist>
90 <option><TMPL_VAR NAME=master></option></TMPL_LOOP>
91</select>
92Allow automatic allocation from private IP ranges:<input type="checkbox" name="allowpriv"></td>
93</tr>
94</TMPL_UNLESS>
95
96<tr class="<TMPL_VAR NAME=rowa>">
97<td>Circuit ID:</td>
98<td><input name="circid" size="40"></td>
99</tr>
100
101<tr class="<TMPL_VAR NAME=rowb>">
102<td>Description/Name:</td>
103<td><input name="desc" size="40"></td>
104</tr>
105
106<tr class="<TMPL_VAR NAME=rowa>">
107<td>Notes:&nbsp;</td>
108<td><textarea name="notes" rows="3" cols="40"></textarea></td>
109</tr>
110
111<TMPL_IF privdata>
112<tr class="<TMPL_VAR NAME=rowb>">
113<td>Restricted data:</td>
114<td><textarea rows="3" cols="64" name="privdata" class="regular"></textarea></td>
115</tr>
116</TMPL_IF>
117
118<tr class="<TMPL_IF privdata><TMPL_VAR NAME=rowa><TMPL_ELSE><TMPL_VAR NAME=rowb></TMPL_IF>">
119<td class="center" colspan="2"><input type="submit" value=" Assign "></td>
120</tr>
121
122</table>
123
124<input type="hidden" name="action" value="confirm">
125</fieldset>
126</form>
127
128</div>
Note: See TracBrowser for help on using the repository browser.