source: trunk/templates/assign.tmpl@ 902

Last change on this file since 902 was 892, checked in by Kris Deugau, 8 years ago

/trunk

Commit tweak to city selection; on allocate-from-freeblock, preselect the
city of the parent

File size: 5.2 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">
[892]44<TMPL_IF preselected>
45<TMPL_LOOP NAME=citylist>
46 <option<TMPL_IF sel> selected</TMPL_IF>><TMPL_VAR NAME=city></option></TMPL_LOOP>
47<TMPL_ELSE>
[457]48 <option selected="selected">-</option>
49<TMPL_LOOP NAME=citylist>
50 <option><TMPL_VAR NAME=city></option></TMPL_LOOP>
[892]51</TMPL_IF>
[456]52</select>
[511]53&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a>
[456]54</td>
55</tr>
56
[687]57<tr>
[456]58<td>Allocation type:</td>
59<td>
[575]60<TMPL_IF fbip>
[456]61<TMPL_VAR NAME=fbdisptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
62<TMPL_ELSE>
[463]63<select name="alloctype">
[456]64<TMPL_LOOP name=typelist>
[529]65 <option value="<TMPL_VAR NAME=type>"<TMPL_IF sel> selected</TMPL_IF>><TMPL_VAR NAME=listname></option></TMPL_LOOP>
[456]66</select>
67<input type="button" value=" ? " onclick="helpAllocTypes()" class="regular">
68</TMPL_IF>
69</td>
70</tr>
71
[575]72<TMPL_UNLESS allocfrom>
[687]73<tr>
[457]74<td>Subnet CIDR mask length:</td>
[692]75<td valign="top">&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3">
76&nbsp;Reserve space to expand block in future
77<input type="checkbox" name="reserve">
78</td>
[456]79</tr>
[457]80</TMPL_UNLESS>
[456]81
[687]82<tr>
[878]83<td>DNS name/pattern:</td>
[675]84<td>
85<input type="text" name="rdns" value="<TMPL_VAR NAME=rdns>" size="40">
86<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
87<TMPL_IF cached>(cached)</TMPL_IF>
88</td>
[585]89</tr>
90
[687]91<tr>
[457]92<td>Customer ID:</td>
[456]93<td><input type="text" name="custid" size="15" maxlength="15"> (Only required for Customer allocations)</td>
94</tr>
95
[687]96<tr>
[633]97<td>Layer-2/demarc node</td>
[456]98<td>
99<select name="node">
[530]100 <option selected>-</option>
[456]101<TMPL_LOOP NAME=nodelist>
[530]102 <option value="<TMPL_VAR NAME=node_id>"><TMPL_VAR NAME=node_name></option></TMPL_LOOP>
[456]103</select>
[633]104&nbsp;<a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newnode.cgi')">Add new demarc node</a>
[456]105</td>
106</tr>
107
[575]108<TMPL_UNLESS allocfrom>
[687]109<tr>
[666]110<td>Allocate from blocks in this location:</td>
[456]111<td>
112<select name="pop">
[457]113 <option selected value="">-</option>
[456]114<TMPL_LOOP NAME=pops>
115 <option><TMPL_VAR NAME=pop></option></TMPL_LOOP>
116</select>
117</td>
118</tr>
119
[687]120<tr>
[633]121<td>Limit to blocks in this master:&nbsp;</td>
[456]122<td>
[457]123<select name="allocfrom">
124 <option selected="selected">-</option>
[456]125<TMPL_LOOP NAME=masterlist>
[633]126 <option value=<TMPL_VAR NAME=id>><TMPL_VAR NAME=master><TMPL_IF vrf> (<TMPL_VAR NAME=vrf>)</TMPL_IF></option></TMPL_LOOP>
[456]127</select>
[457]128Allow automatic allocation from private IP ranges:<input type="checkbox" name="allowpriv"></td>
[456]129</tr>
130</TMPL_UNLESS>
131
[687]132<tr>
[691]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>
[805]144<td><input name="desc" size="72"></td>
[456]145</tr>
146
[687]147<tr>
[456]148<td>Notes:&nbsp;</td>
[805]149<td><textarea name="notes" rows="8" cols="72" class="regular"></textarea></td>
[456]150</tr>
151
[782]152<TMPL_IF nocling>
[687]153<tr>
[456]154<td>Restricted data:</td>
[805]155<td><textarea name="privdata" rows="8" cols="72" class="regular"></textarea></td>
[456]156</tr>
[782]157
158<tr>
159<td>Configuration backup:</td>
160<td>
161<ul class="collapsible notalist"><li>
162<label for="backupfields">Device/assignment requires backup?</label>
163<input type="checkbox" id="backupfields" name="backupfields" />
164<ul class="notalist"><li>
165<table><tr><td>Brand:</td><td><input name="bkbrand"></td></tr>
166<tr><td>Model:</td><td><input name="bkmodel"></td></tr>
167<tr><td colspan="2">Optional settings if different from standard ones for the device type above:</td></tr>
168<tr><td>Access method:</td><td><select name="bktype">
[796]169<option selected="selected">SSH</option>
170<option>telnet</option>
[782]171</select></td></tr>
172<tr><td>Connect from:</td><td><input name="bksrc"></td></tr>
173<tr><td>Username:</td><td><input name="bkuser"></td></tr>
174<tr><td>VTY password:</td><td><input name="bkvpass"></td></tr>
175<tr><td>Enable password:</td><td><input name="bkepass"></td></tr>
176<tr><td>Alternate port (if required):</td><td><input name="bkport"></td></tr>
[798]177<tr><td>IP (if device is part of a netblock assignment):</td><td><input name="bkip"></td></tr>
[782]178</table>
179</li></ul>
180</li></ul>
181</td>
182</tr>
[456]183</TMPL_IF>
184
[687]185<tr>
[456]186<td class="center" colspan="2"><input type="submit" value=" Assign "></td>
187</tr>
188
189</table>
190
[457]191<input type="hidden" name="action" value="confirm">
192</fieldset>
193</form>
194
[456]195</div>
Note: See TracBrowser for help on using the repository browser.