source: branches/stable/templates/assign.tmpl@ 823

Last change on this file since 823 was 605, checked in by Kris Deugau, 11 years ago

/branches/stable

Brown-paper-bag fixup commit:

  • add another type to the set which can use nodes
  • template and code changes to let admin allocations includ VRF info
  • fix subtle bug in getTypeList() that returned the Routing type when it shouldn't
  • compare and display VRF info on searches
  • minor HTML formatting tweaks for clarity

Bump version to 2.8.1

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