Changeset 458


Ignore:
Timestamp:
Aug 4, 2010, 3:55:43 PM (11 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Adjust convention for HTML::Template usage - don't name TMPL_IF or
TMPL_UNLESS blocks. See #3, sort of - doesn't affect HTML output.

Location:
branches/htmlform/templates
Files:
3 edited

Legend:

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

    r457 r458  
    11<div class="indent">
    2 <TMPL_IF NAME=block>
     2<TMPL_IF block>
    33<div class="tblsubtitle">
    4 Assign free <TMPL_IF NAME=iscontained><TMPL_VAR NAME=fbdisptype></TMPL_IF> block <TMPL_VAR NAME=block>
     4Assign free <TMPL_IF iscontained><TMPL_VAR NAME=fbdisptype></TMPL_IF> block <TMPL_VAR NAME=block>
    55</div>
    66<TMPL_ELSE>
     
    1212<fieldset><legend></legend>
    1313
    14 <TMPL_IF NAME=block>
     14<TMPL_IF block>
    1515<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
    1616<input type="hidden" name="fbassign" value="y">
     
    3434<td>Allocation type:</td>
    3535<td>
    36 <TMPL_IF NAME=iscontained>
     36<TMPL_IF iscontained>
    3737<TMPL_VAR NAME=fbdisptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
    3838<TMPL_ELSE>
     
    4646</tr>
    4747
    48 <TMPL_UNLESS NAME=block>
     48<TMPL_UNLESS block>
    4949<tr class="row0">
    5050<td>Subnet CIDR mask length:</td>
     
    7070</tr>
    7171
    72 <TMPL_UNLESS NAME=block>
     72<TMPL_UNLESS block>
    7373<tr class="<TMPL_VAR NAME=rowa>">
    7474<td>Route from/through:</td>
     
    109109</tr>
    110110
    111 <TMPL_IF NAME=privdata>
     111<TMPL_IF privdata>
    112112<tr class="<TMPL_VAR NAME=rowb>">
    113113<td>Restricted data:</td>
     
    116116</TMPL_IF>
    117117
    118 <tr class="<TMPL_IF NAME=privdata><TMPL_VAR NAME=rowa><TMPL_ELSE><TMPL_VAR NAME=rowb></TMPL_IF>">
     118<tr class="<TMPL_IF privdata><TMPL_VAR NAME=rowa><TMPL_ELSE><TMPL_VAR NAME=rowb></TMPL_IF>">
    119119<td class="center" colspan="2"><input type="submit" value="  Assign  "></td>
    120120</tr>
  • branches/htmlform/templates/footer.tmpl

    r451 r458  
    11<br>
    22<!-- Done with the main div opened in the header template -->
    3 <TMPL_IF NAME=adminlink><div id="adminlink"><a href="/ip/cgi-bin/admin.cgi">Admin tools</a></div></TMPL_IF>
     3<TMPL_IF adminlink><div id="adminlink"><a href="/ip/cgi-bin/admin.cgi">Admin tools</a></div></TMPL_IF>
    44</div>
    55
  • branches/htmlform/templates/header.tmpl

    r451 r458  
    3838</form>
    3939</div>
    40 <TMPL_IF NAME=addperm>
     40<TMPL_IF addperm>
    4141<div id="newlink"><a href="/ip/cgi-bin/main.cgi?action=assign">Add new assignment</a></div>
    4242</TMPL_IF>
Note: See TracChangeset for help on using the changeset viewer.