Changeset 692 for trunk/templates


Ignore:
Timestamp:
02/11/15 18:43:22 (10 years ago)
Author:
Kris Deugau
Message:

/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
Location:
trunk/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/assign.tmpl

    r691 r692  
    3131<input name="block" value="<TMPL_VAR NAME=block>" size="40">
    3232<input type="hidden" name="fbassign" value="y">
     33&nbsp;Reserve space to expand block in future
     34<input type="checkbox" name="reserve">
    3335</td>
    3436</TMPL_IF>
     
    6668<tr>
    6769<td>Subnet CIDR mask length:</td>
    68 <td valign="top">&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3"></td>
     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>
    6974</tr>
    7075</TMPL_UNLESS>
  • trunk/templates/confirm.tmpl

    r691 r692  
    77<TMPL_ELSE>
    88<div class="indent">
    9 
     9<TMPL_IF warning>
     10<div class="center warning">
     11<TMPL_VAR NAME=warning>
     12</div>
     13</TMPL_IF>
    1014<form method="POST" action="main.cgi" class="regular">
    1115<fieldset><legend class="noshow">&nbsp;</legend>
     
    1519<tr>
    1620<td>CIDR block to be allocated:</td>
    17 <td><TMPL_VAR NAME=cidr></td>
     21<td><TMPL_VAR NAME=cidr> <TMPL_IF resvblock>(<TMPL_VAR NAME=resvblock> reserved for expansion)</TMPL_IF></td>
    1822</tr>
    1923
     
    119123<input type="hidden" name="parent" value="<TMPL_VAR NAME=parent>">
    120124<input type="hidden" name="fbid" value="<TMPL_VAR NAME=fbid>">
     125<TMPL_IF resvblock><input type="hidden" name="reserve" value="<TMPL_VAR NAME=reserve>"></TMPL_IF>
    121126<input type="hidden" name="fullcidr" value="<TMPL_VAR NAME=cidr>">
    122127<input type="hidden" name="rdns" value="<TMPL_VAR NAME=rdns>">
  • trunk/templates/showsubs.tmpl

    r687 r692  
    106106<TMPL_VAR NAME=fblock>
    107107</TMPL_IF>
     108<TMPL_IF resv><br>(Reserved to expand <TMPL_VAR NAME=resv>)</TMPL_IF>
    108109</td>
    109110<td><TMPL_VAR NAME=frange></td>
Note: See TracChangeset for help on using the changeset viewer.