source: trunk/templates/showsubs2.tmpl@ 916

Last change on this file since 916 was 913, checked in by Kris Deugau, 7 years ago

/trunk

Add IP count and percent-free to the heading and showsubs layout 2 by request

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