source: trunk/templates/assign.tmpl@ 691

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

/trunk

Expose VRF field, and add a similar VLAN field (see #10).

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