Changeset 457


Ignore:
Timestamp:
Aug 3, 2010, 6:02:29 PM (11 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Finally got "assign IPs" template page to validate in all 3
current possible modes (normal, freeblock, contained freeblock).
See #3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/templates/assign.tmpl

    r456 r457  
    99<br>
    1010
     11<form method="post" action="main.cgi" class="regular">
     12<fieldset><legend></legend>
     13
     14<TMPL_IF NAME=block>
     15<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
     16<input type="hidden" name="fbassign" value="y">
     17</TMPL_IF>
     18
    1119<table class="regular" cellspacing="1" cellpadding="1">
    12 <form method="POST" action="main.cgi" class="regular">
    1320
    1421<tr class="row0">
    15 <td>Customer location:&nbsp;</td>
     22<td>Customer location:</td>
    1623<td>
    17 <select name="city"><option selected>-</option>
    18 <TMPL_LOOP NAME=citylist><option><TMPL_VAR NAME=city></option></TMPL_LOOP>
     24<select name="city">
     25        <option selected="selected">-</option>
     26<TMPL_LOOP NAME=citylist>
     27        <option><TMPL_VAR NAME=city></option></TMPL_LOOP>
    1928</select>
    2029&nbsp;<a href="javascript:popNotes('/ip/newcity.html')">Add new location</a>
     
    3746</tr>
    3847
    39 <TMPL_IF NAME=block>
    40 <input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
    41 <input type="hidden" name="fbassign" value="y">
    42 <TMPL_ELSE>
     48<TMPL_UNLESS NAME=block>
    4349<tr class="row0">
    44 <td>Subnet CIDR mask length:&nbsp;</td>
    45 <td valign=top>&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3"></td>
     50<td>Subnet CIDR mask length:</td>
     51<td valign="top">&nbsp;/&nbsp;<input type="text" name="maskbits" size="3" maxlength="3"></td>
    4652</tr>
    47 </TMPL_IF>
     53</TMPL_UNLESS>
    4854
    4955<tr class="<TMPL_VAR NAME=rowa>">
    50 <td>Customer ID:&nbsp;</td>
     56<td>Customer ID:</td>
    5157<td><input type="text" name="custid" size="15" maxlength="15"> (Only required for Customer allocations)</td>
    5258</tr>
     
    5662<td>
    5763<select name="node">
    58         <option selected>-</option>
     64        <option selected="selected">-</option>
    5965<TMPL_LOOP NAME=nodelist>
    6066        <option value="<TMPL_VAR NAME=nid>"><TMPL_VAR NAME=nname></option></TMPL_LOOP>
     
    6672<TMPL_UNLESS NAME=block>
    6773<tr class="<TMPL_VAR NAME=rowa>">
    68 <td>Route from/through:&nbsp;</td>
     74<td>Route from/through:</td>
    6975<td>
    7076<select name="pop">
    71         <option selected value=>-</option>
     77        <option selected value="">-</option>
    7278<TMPL_LOOP NAME=pops>
    7379        <option><TMPL_VAR NAME=pop></option></TMPL_LOOP>
     
    7985<td>Route/allocate from this master:&nbsp;</td>
    8086<td>
    81 <select name=allocfrom>
    82         <option selected>-</option>
     87<select name="allocfrom">
     88        <option selected="selected">-</option>
    8389<TMPL_LOOP NAME=masterlist>
    8490        <option><TMPL_VAR NAME=master></option></TMPL_LOOP>
    8591</select>
    86 Allow automatic allocation from private IP ranges:<input type=checkbox name=allowpriv></td>
     92Allow automatic allocation from private IP ranges:<input type="checkbox" name="allowpriv"></td>
    8793</tr>
    8894</TMPL_UNLESS>
    8995
    9096<tr class="<TMPL_VAR NAME=rowa>">
    91 <td>Circuit ID:&nbsp;</td>
    92 <td><input name=circid size=40></td>
     97<td>Circuit ID:</td>
     98<td><input name="circid" size="40"></td>
    9399</tr>
    94100
    95101<tr class="<TMPL_VAR NAME=rowb>">
    96 <td>Description/Name:&nbsp;</td>
    97 <td><input name="desc" size=40></td>
     102<td>Description/Name:</td>
     103<td><input name="desc" size="40"></td>
    98104</tr>
    99105
     
    112118<tr class="<TMPL_IF NAME=privdata><TMPL_VAR NAME=rowa><TMPL_ELSE><TMPL_VAR NAME=rowb></TMPL_IF>">
    113119<td class="center" colspan="2"><input type="submit" value="  Assign  "></td>
    114 <input type="hidden" name="action" value="confirm">
    115120</tr>
    116121
    117 </form>
    118122</table>
    119123
     124<input type="hidden" name="action" value="confirm">
     125</fieldset>
     126</form>
     127
    120128</div>
Note: See TracChangeset for help on using the changeset viewer.