Last change
on this file since 601 was 544, checked in by Kris Deugau, 12 years ago |
/trunk
Extend findAllocateFrom() to allow passing a target block to allocate
to restrict the freeblock selection
Remove local SQL for confirmation page for "assign this block" in
admin.cgi in favour of existing data and subs. See #34.
For admin.cgi "assign this block", if the requested IP type does not
match the pool, the type will be adjusted and a warning pushed out.
Add space on "assign this block" template for a warning.
|
File size:
1.7 KB
|
Line | |
---|
1 | <TMPL_IF errmsg>
|
---|
2 | <TMPL_VAR NAME=errmsg>
|
---|
3 | <TMPL_ELSE>
|
---|
4 | <TMPL_IF warnmsg><div class="warnmsg"><TMPL_VAR NAME=warnmsg></div></TMPL_IF>
|
---|
5 | <form method="POST" action="admin.cgi">
|
---|
6 | <fieldset><legend class="noshow"> </legend>
|
---|
7 | <table class="regular">
|
---|
8 | <tr class="row0">
|
---|
9 | <td>Allocating:</td>
|
---|
10 | <td><TMPL_VAR NAME=cidr><input type="hidden" name="cidr" value="<TMPL_VAR NAME=cidr>"></td>
|
---|
11 | </tr>
|
---|
12 | <tr class="row1">
|
---|
13 | <td>Type:</td>
|
---|
14 | <td><TMPL_VAR NAME=disptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>"></td>
|
---|
15 | </tr>
|
---|
16 | <tr class="row0">
|
---|
17 | <td>Allocated from:</td>
|
---|
18 | <td><TMPL_VAR NAME=alloc_from><input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>"></td>
|
---|
19 | </tr>
|
---|
20 | <tr class="row1">
|
---|
21 | <td>Customer ID:</td>
|
---|
22 | <td><TMPL_VAR NAME=custid><input type="hidden" name="custid" value="<TMPL_VAR NAME=custid>"></td>
|
---|
23 | </tr>
|
---|
24 | <tr class="row0">
|
---|
25 | <td>Customer location:</td>
|
---|
26 | <td>
|
---|
27 | <select name="city"><option selected>-</option>
|
---|
28 | <TMPL_LOOP NAME=citylist><option><TMPL_VAR NAME=city></option>
|
---|
29 | </TMPL_LOOP></select>
|
---|
30 | <a href="javascript:popNotes('<TMPL_VAR NAME=webpath>/cgi-bin/newcity.cgi')">Add new location</a>
|
---|
31 | </td>
|
---|
32 | </tr>
|
---|
33 | <tr class="row1">
|
---|
34 | <td>Circuit ID:</td><td><input name="circid" size="40"></td>
|
---|
35 | </tr>
|
---|
36 | <tr class="row0">
|
---|
37 | <td>Description/Name:</td><td><input name="desc" size="40"></td>
|
---|
38 | </tr>
|
---|
39 | <tr class="row1">
|
---|
40 | <td>Notes:</td><td><textarea name="notes" rows="3" cols="40"></textarea></td>
|
---|
41 | </tr>
|
---|
42 | <tr class="warning">
|
---|
43 | <td class="center" colspan="2">WARNING: This will IMMEDIATELY assign this block!!</td>
|
---|
44 | </tr>
|
---|
45 | <tr class="row1">
|
---|
46 | <td class="center" colspan="2"><input type="submit" value=" Assign "></td>
|
---|
47 | </tr>
|
---|
48 | </table>
|
---|
49 | <input type="hidden" name="action" value="confirm">
|
---|
50 | </fieldset></form>
|
---|
51 | </TMPL_IF>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.