source: trunk/templates/showsubs2.tmpl@ 715

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

/trunk

Copy a couple of refinements from showsubs.tmpl to showsubs2.tmpl

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