Changeset 568 for trunk/templates


Ignore:
Timestamp:
12/19/12 17:05:38 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Work in progress, see #5:
Also forgot about the new template for the new page in r566

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/templates/showsubs.tmpl

    r550 r568  
    1 <div class="tbltitle">Summarizing allocated blocks for <TMPL_VAR NAME=master> (<TMPL_VAR NAME=rcity>):</div>
     1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block></div>
    22<br>
     3<TMPL_VAR NAME=addperm>
    34
    4 <TMPL_IF blocklist>
     5<TMPL_IF sublist>
    56<table width="98%" cellspacing="0" class="center">
    67
    78<tr>
    8 <td class="heading">CIDR allocation</td>
    9 <td class="heading">Customer Location</td>
     9<td class="heading">Netblock</td>
     10<td class="heading">City</td>
    1011<td class="heading">Type</td>
    1112<td class="heading">CustID</td>
     
    1415</tr>
    1516
    16 <TMPL_LOOP NAME=blocklist>
     17<TMPL_LOOP NAME=sublist>
    1718<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
    1819<td>
    19 <TMPL_IF subblock>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a>
    20 <TMPL_IF listpool> &nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF>
     20<TMPL_IF hassubs>
     21<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;block=<TMPL_VAR NAME=block>&amp;rdepth=<TMPL_VAR NAME=subdepth>"><TMPL_VAR NAME=block></a>
     22<TMPL_ELSE>
     23<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=block>&amp;rdepth=<TMPL_VAR NAME=rdepth>"><TMPL_VAR NAME=block></a>
     24<TMPL_IF listpool> &nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=block>&amp;rdepth=<TMPL_VAR NAME=rdepth>">List IPs</a></TMPL_IF>
     25</TMPL_IF>
    2126</td>
    2227<td><TMPL_VAR NAME=city></td>
    2328<td><TMPL_VAR NAME=type></td>
    24 <td><TMPL_VAR NAME=custid></td>
     29<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi?stype=q&amp;input=<TMPL_VAR NAME=custid>"><TMPL_VAR NAME=custid></a></td>
    2530<td><TMPL_VAR NAME=swip><TMPL_IF partswip><small>*</small></TMPL_IF></td>
    2631<td><TMPL_VAR NAME=desc></td>
     
    3035<TMPL_ELSE>
    3136<hr class="w30">
    32 <div class="tbltitle">No allocations in <TMPL_VAR NAME=master>.
    33 <TMPL_IF delrouted>
     37<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>.
     38<TMPL_IF maydel>
    3439<br>
    3540<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
    3641<fieldset><legend class="noshow">&nbsp;</legend>
    3742<input type=hidden name=action value="delete">
    38 <input type=hidden name=block value="<TMPL_VAR NAME=master>">
    39 <input type=hidden name=alloctype value="rm">
     43<input type=hidden name=block value="<TMPL_VAR NAME=block>">
     44<input type=hidden name=rdepth value="<TMPL_VAR NAME=deldepth>">
    4045<input type=submit value=" Remove this block ">
    4146</fieldset>
     
    4853<hr class="w60">
    4954
    50 <div class="tbltitle">Free blocks within routed block <TMPL_VAR NAME=master></div>
     55<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
    5156
    52 <TMPL_IF unassigned>
     57<TMPL_IF freelist>
    5358<table width="98%" cellspacing="0" class="center">
    5459<tr>
     
    5762</tr>
    5863
    59 <TMPL_LOOP name=unassigned>
     64<TMPL_LOOP name=freelist>
    6065<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
    61 <td><TMPL_IF subblock>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=fblock>&amp;fbtype=<TMPL_VAR NAME=fbtype>"><TMPL_VAR NAME=fblock></a></td>
     66<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
     67<TMPL_ELSE>
     68<td>
     69<TMPL_IF mayadd>
     70<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=fblock>&amp;rdepth=<TMPL_VAR NAME=rdepth>"><TMPL_VAR NAME=fblock></a>
     71<TMPL_ELSE>
     72<TMPL_VAR NAME=fblock>
     73</TMPL_IF>
     74</td>
    6275<td><TMPL_VAR NAME=frange></td>
     76</TMPL_IF>
    6377</tr>
    6478</TMPL_LOOP>
     
    6781<br>
    6882<hr class="w30">
    69 <div class="tbltitle">No unassigned blocks in routed block <TMPL_VAR NAME=master></div>
     83<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
    7084</TMPL_IF>
Note: See TracChangeset for help on using the changeset viewer.