source: trunk/templates/assign.tmpl@ 707

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

/trunk

Start adding support for advisory "reserved block" assignments - when
creating a new assignment, flag an equal-sized block ahead or behind
to expand the assignment in the future. See #24.

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