source: trunk/templates/showsubs2.tmpl@ 691

Last change on this file since 691 was 682, checked in by Kris Deugau, 10 years ago

/trunk

Convert working hack for comparing container list layout into a
configuration switch, and pick a default.

File size: 2.8 KB
RevLine 
[568]1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block></div>
[467]2<br>
[568]3<TMPL_VAR NAME=addperm>
[467]4
[568]5<TMPL_IF sublist>
[467]6<table width="98%" cellspacing="0" class="center">
7
8<tr>
[568]9<td class="heading">Netblock</td>
10<td class="heading">City</td>
[467]11<td class="heading">Type</td>
12<td class="heading">CustID</td>
13<td class="heading">SWIPed?</td>
14<td class="heading">Description/Name</td>
15</tr>
16
[568]17<TMPL_LOOP NAME=sublist>
[527]18<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[467]19<td>
[682]20<TMPL_IF subblock>Sub </TMPL_IF>
[568]21<TMPL_IF hassubs>
[627]22<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a>
[568]23<TMPL_ELSE>
[627]24<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=id>&amp;basetype=b"><TMPL_VAR NAME=block></a>
25<TMPL_IF listpool> &nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=id>">List IPs</a></TMPL_IF>
[568]26</TMPL_IF>
[467]27</td>
28<td><TMPL_VAR NAME=city></td>
29<td><TMPL_VAR NAME=type></td>
[568]30<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>
[527]31<td><TMPL_VAR NAME=swip><TMPL_IF partswip><small>*</small></TMPL_IF></td>
[467]32<td><TMPL_VAR NAME=desc></td>
33</tr>
[653]34<TMPL_IF hassubs>
35<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
36<td colspan=4>
37Containers: <TMPL_VAR NAME=subcontainers>, Allocations: <TMPL_VAR NAME=suballocs>, Free: <TMPL_VAR NAME=subfree>, Largest free: <TMPL_VAR ESCAPE=HTML NAME=lfree>
38</td><td colspan=2></td></tr>
39</TMPL_IF>
[467]40</TMPL_LOOP>
41</table>
42<TMPL_ELSE>
43<hr class="w30">
[627]44<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>
[568]45<TMPL_IF maydel>
[467]46<br>
[511]47<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
[513]48<fieldset><legend class="noshow">&nbsp;</legend>
[467]49<input type=hidden name=action value="delete">
[627]50<input type=hidden name=block value="<TMPL_VAR NAME=del_id>">
51<input type=hidden name=basetype value="b">
[467]52<input type=submit value=" Remove this block ">
53</fieldset>
54</form>
55</TMPL_IF>
56</div>
57</TMPL_IF>
58
59<br>
60<hr class="w60">
61
[568]62<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
[467]63
[568]64<TMPL_IF freelist>
[467]65<table width="98%" cellspacing="0" class="center">
66<tr>
67<td class="heading">CIDR block</td>
68<td class="heading">Range</td>
69</tr>
70
[568]71<TMPL_LOOP name=freelist>
[527]72<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[568]73<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
74<TMPL_ELSE>
75<td>
76<TMPL_IF mayadd>
[627]77<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=fblock>&amp;fbid=<TMPL_VAR NAME=fbid>&amp;parent=<TMPL_VAR NAME=fbparent>"><TMPL_VAR NAME=fblock></a>
[568]78<TMPL_ELSE>
79<TMPL_VAR NAME=fblock>
80</TMPL_IF>
81</td>
[467]82<td><TMPL_VAR NAME=frange></td>
[568]83</TMPL_IF>
[467]84</tr>
85</TMPL_LOOP>
86</table>
87<TMPL_ELSE>
88<br>
89<hr class="w30">
[568]90<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
[467]91</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.