Last change
on this file since 850 was 705, checked in by Kris Deugau, 10 years ago |
/trunk
- Complete internal handling for "shrink block". See #7 (more or less).
- Add "breadcrumb" navigation fragments to split/shrink prep and do pages
- Add link to pool IP list on edit and split/shrink prep pages
- Shave off some useless code showing the split results
- Catch the theoretically impossible case of "no subact value" on
submitting split/shrink form
Still need to add calls to monkey rDNS on split/shrink changes
|
File size:
1.7 KB
|
Rev | Line | |
---|
[702] | 1 | <TMPL_IF err>
|
---|
| 2 | <div class="regular err">
|
---|
| 3 | <p><TMPL_VAR NAME=err></p>
|
---|
| 4 | <input type="button" value="Back" onclick="history.go(-1)">
|
---|
| 5 | </div>
|
---|
| 6 | <TMPL_ELSE>
|
---|
| 7 |
|
---|
| 8 | <div class="indent">
|
---|
| 9 | <form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
|
---|
| 10 | <fieldset><legend class="noshow"> </legend>
|
---|
| 11 | <input type="hidden" name="action" value="dosplit">
|
---|
| 12 | <input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
|
---|
| 13 |
|
---|
| 14 | <table class="regular altrows" cellspacing="1" cellpadding="1">
|
---|
[705] | 15 | <tr class="heading">
|
---|
| 16 | <td colspan="2">Split/shrink allocation
|
---|
| 17 | <TMPL_IF ispool>
|
---|
| 18 | <div style="float:right;"><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&pool=<TMPL_VAR
|
---|
| 19 | NAME=block>">List IPs</a></div>
|
---|
| 20 | </TMPL_IF></td>
|
---|
| 21 | </tr>
|
---|
[702] | 22 | <tr>
|
---|
| 23 | <td>Current netblock:</td>
|
---|
| 24 | <td><TMPL_VAR NAME=oldblock></td>
|
---|
| 25 | </tr>
|
---|
| 26 | <tr>
|
---|
| 27 | <td><input type="radio" name="subact" value="split" checked="checked"> Split</td>
|
---|
| 28 | <td>
|
---|
| 29 | <input type="radio" name="split" value="<TMPL_VAR NAME=sp2mask>" checked="checked">Split into 2 /<TMPL_VAR NAME=sp2mask> blocks
|
---|
| 30 | <TMPL_IF sp4mask><br>
|
---|
| 31 | <input type="radio" name="split" value="<TMPL_VAR NAME=sp4mask>">Split into 4 /<TMPL_VAR NAME=sp4mask> blocks
|
---|
| 32 | </TMPL_IF>
|
---|
| 33 | </td>
|
---|
| 34 | </tr>
|
---|
| 35 | <tr>
|
---|
| 36 | <td><input type="radio" name="subact" value="shrink"> Shrink<br> (return leftover IP space as free)</td>
|
---|
| 37 | <td>
|
---|
| 38 | <input type="radio" name="shrink" value="<TMPL_VAR NAME=newblockA>">Keep <TMPL_VAR NAME=newblockA><br>
|
---|
| 39 | <input type="radio" name="shrink" value="<TMPL_VAR NAME=newblockB>">Keep <TMPL_VAR NAME=newblockB></td>
|
---|
| 40 | </tr>
|
---|
| 41 |
|
---|
[705] | 42 | <TMPL_IF ispool>
|
---|
[702] | 43 | <tr>
|
---|
[705] | 44 | <td colspan="2" class="warning">Warning: Proceeding may remove pool IP entries</td>
|
---|
| 45 | </tr>
|
---|
| 46 | </TMPL_IF>
|
---|
| 47 |
|
---|
| 48 | <tr>
|
---|
[702] | 49 | <td class="center" colspan="2"><input type="submit" value=" Split/Shrink "></td>
|
---|
| 50 | </tr>
|
---|
| 51 | </table>
|
---|
| 52 | </fieldset>
|
---|
| 53 | </form>
|
---|
| 54 | </div>
|
---|
| 55 |
|
---|
| 56 | </TMPL_IF>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.