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

Last change on this file since 929 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
RevLine 
[456]1<div class="indent">
[458]2<TMPL_IF block>
[456]3<div class="tblsubtitle">
[458]4Assign free <TMPL_IF iscontained><TMPL_VAR NAME=fbdisptype></TMPL_IF> block <TMPL_VAR NAME=block>
[456]5</div>
6<TMPL_ELSE>
7<div class="tblsubtitle">Assign IPs</div>
8</TMPL_IF>
9<br>
10
[457]11<form method="post" action="main.cgi" class="regular">
[513]12<fieldset><legend class="noshow">&nbsp;</legend>
[457]13
[458]14<TMPL_IF block>
[457]15<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
16<input type="hidden" name="fbassign" value="y">
17</TMPL_IF>
18
[456]19<table class="regular" cellspacing="1" cellpadding="1">
20
21<tr class="row0">
[457]22<td>Customer location:</td>
[456]23<td>
[457]24<select name="city">
25 <option selected="selected">-</option>
26<TMPL_LOOP NAME=citylist>
27 <option><TMPL_VAR NAME=city></option></TMPL_LOOP>
[456]28</select>
[511]29&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a>
[456]30</td>
31</tr>
32
33<tr class="row1">
34<td>Allocation type:</td>
35<td>
[458]36<TMPL_IF iscontained>
[456]37<TMPL_VAR NAME=fbdisptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
38<TMPL_ELSE>
[463]39<select name="alloctype">
[456]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
[458]48<TMPL_UNLESS block>
[456]49<tr class="row0">
[457]50<td>Subnet CIDR mask length:</td>
51<td valign="top">&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3"></td>
[456]52</tr>
[457]53</TMPL_UNLESS>
[456]54
55<tr class="<TMPL_VAR NAME=rowa>">
[457]56<td>Customer ID:</td>
[456]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">
[457]64 <option selected="selected">-</option>
[456]65<TMPL_LOOP NAME=nodelist>
66 <option value="<TMPL_VAR NAME=nid>"><TMPL_VAR NAME=nname></option></TMPL_LOOP>
67</select>
[511]68&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new location</a>
[456]69</td>
70</tr>
71
[458]72<TMPL_UNLESS block>
[456]73<tr class="<TMPL_VAR NAME=rowa>">
[457]74<td>Route from/through:</td>
[456]75<td>
76<select name="pop">
[457]77 <option selected value="">-</option>
[456]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>
[457]87<select name="allocfrom">
88 <option selected="selected">-</option>
[456]89<TMPL_LOOP NAME=masterlist>
90 <option><TMPL_VAR NAME=master></option></TMPL_LOOP>
91</select>
[457]92Allow automatic allocation from private IP ranges:<input type="checkbox" name="allowpriv"></td>
[456]93</tr>
94</TMPL_UNLESS>
95
96<tr class="<TMPL_VAR NAME=rowa>">
[457]97<td>Circuit ID:</td>
98<td><input name="circid" size="40"></td>
[456]99</tr>
100
101<tr class="<TMPL_VAR NAME=rowb>">
[457]102<td>Description/Name:</td>
103<td><input name="desc" size="40"></td>
[456]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
[458]111<TMPL_IF privdata>
[456]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
[458]118<tr class="<TMPL_IF privdata><TMPL_VAR NAME=rowa><TMPL_ELSE><TMPL_VAR NAME=rowb></TMPL_IF>">
[456]119<td class="center" colspan="2"><input type="submit" value=" Assign "></td>
120</tr>
121
122</table>
123
[457]124<input type="hidden" name="action" value="confirm">
125</fieldset>
126</form>
127
[456]128</div>
Note: See TracBrowser for help on using the repository browser.