source: trunk/templates/assign.tmpl@ 688

Last change on this file since 688 was 687, checked in by Kris Deugau, 10 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: 3.7 KB
Line 
1<div class="indent">
2
3<form method="post" action="main.cgi" class="regular">
4<fieldset><legend class="noshow">&nbsp;</legend>
5
6<table class="regular altrows" cellspacing="1" cellpadding="1">
7<tr class="tblsubtitle"><td>Assign IP<TMPL_UNLESS fbip>s</TMPL_UNLESS></td></tr>
8
9<TMPL_IF allocfrom>
10<tr>
11<TMPL_IF fbip>
12<td>IP pool:</td>
13<TMPL_ELSE>
14<td>Free block selected:</td>
15</TMPL_IF>
16<td><TMPL_VAR NAME=allocfrom><input type="hidden" name="allocfrom" value="<TMPL_VAR NAME=allocfrom>">
17<input type="hidden" name="parent" value="<TMPL_VAR NAME=parent>">
18<input type="hidden" name="fbid" value="<TMPL_VAR NAME=fbid>">
19</td>
20</tr>
21<tr>
22<TMPL_IF fbip>
23<td>IP:</td>
24<td>
25<TMPL_VAR NAME=block><input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
26<input type="hidden" name="fbassign" value="y">
27</td>
28<TMPL_ELSE>
29<td>Allocation:</td>
30<td>
31<input name="block" value="<TMPL_VAR NAME=block>" size="40">
32<input type="hidden" name="fbassign" value="y">
33</td>
34</TMPL_IF>
35</tr>
36</TMPL_IF>
37
38<tr>
39<td>Customer location:</td>
40<td>
41<select name="city">
42 <option selected="selected">-</option>
43<TMPL_LOOP NAME=citylist>
44 <option><TMPL_VAR NAME=city></option></TMPL_LOOP>
45</select>
46&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a>
47</td>
48</tr>
49
50<tr>
51<td>Allocation type:</td>
52<td>
53<TMPL_IF fbip>
54<TMPL_VAR NAME=fbdisptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
55<TMPL_ELSE>
56<select name="alloctype">
57<TMPL_LOOP name=typelist>
58 <option value="<TMPL_VAR NAME=type>"<TMPL_IF sel> selected</TMPL_IF>><TMPL_VAR NAME=listname></option></TMPL_LOOP>
59</select>
60<input type="button" value=" ? " onclick="helpAllocTypes()" class="regular">
61</TMPL_IF>
62</td>
63</tr>
64
65<TMPL_UNLESS allocfrom>
66<tr>
67<td>Subnet CIDR mask length:</td>
68<td valign="top">&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3"></td>
69</tr>
70</TMPL_UNLESS>
71
72<tr>
73<td>Reverse DNS pattern:</td>
74<td>
75<input type="text" name="rdns" value="<TMPL_VAR NAME=rdns>" size="40">
76<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
77<TMPL_IF cached>(cached)</TMPL_IF>
78</td>
79</tr>
80
81<tr>
82<td>Customer ID:</td>
83<td><input type="text" name="custid" size="15" maxlength="15"> (Only required for Customer allocations)</td>
84</tr>
85
86<tr>
87<td>Layer-2/demarc node</td>
88<td>
89<select name="node">
90 <option selected>-</option>
91<TMPL_LOOP NAME=nodelist>
92 <option value="<TMPL_VAR NAME=node_id>"><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</td>
96</tr>
97
98<TMPL_UNLESS allocfrom>
99<tr>
100<td>Allocate from blocks in this location:</td>
101<td>
102<select name="pop">
103 <option selected value="">-</option>
104<TMPL_LOOP NAME=pops>
105 <option><TMPL_VAR NAME=pop></option></TMPL_LOOP>
106</select>
107</td>
108</tr>
109
110<tr>
111<td>Limit to blocks in this master:&nbsp;</td>
112<td>
113<select name="allocfrom">
114 <option selected="selected">-</option>
115<TMPL_LOOP NAME=masterlist>
116 <option value=<TMPL_VAR NAME=id>><TMPL_VAR NAME=master><TMPL_IF vrf> (<TMPL_VAR NAME=vrf>)</TMPL_IF></option></TMPL_LOOP>
117</select>
118Allow automatic allocation from private IP ranges:<input type="checkbox" name="allowpriv"></td>
119</tr>
120</TMPL_UNLESS>
121
122<tr>
123<td>Circuit ID:</td>
124<td><input name="circid" size="40"></td>
125</tr>
126
127<tr>
128<td>Description/Name:</td>
129<td><input name="desc" size="40"></td>
130</tr>
131
132<tr>
133<td>Notes:&nbsp;</td>
134<td><textarea name="notes" rows="3" cols="40"></textarea></td>
135</tr>
136
137<TMPL_IF privdata>
138<tr>
139<td>Restricted data:</td>
140<td><textarea rows="3" cols="64" name="privdata" class="regular"></textarea></td>
141</tr>
142</TMPL_IF>
143
144<tr>
145<td class="center" colspan="2"><input type="submit" value=" Assign "></td>
146</tr>
147
148</table>
149
150<input type="hidden" name="action" value="confirm">
151</fieldset>
152</form>
153
154</div>
Note: See TracBrowser for help on using the repository browser.