source: trunk/templates/showsubs2.tmpl@ 913

Last change on this file since 913 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
RevLine 
[711]1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block>
[913]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
[711]4</div>
[467]5<br>
6
[568]7<TMPL_IF sublist>
[467]8<table width="98%" cellspacing="0" class="center">
9
10<tr>
[568]11<td class="heading">Netblock</td>
12<td class="heading">City</td>
[467]13<td class="heading">Type</td>
14<td class="heading">CustID</td>
[827]15<td class="heading">Free stats</td>
[467]16<td class="heading">Description/Name</td>
17</tr>
18
[568]19<TMPL_LOOP NAME=sublist>
[527]20<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[467]21<td>
[682]22<TMPL_IF subblock>Sub </TMPL_IF>
[568]23<TMPL_IF hassubs>
[627]24<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a>
[568]25<TMPL_ELSE>
[627]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>
[568]28</TMPL_IF>
[467]29</td>
30<td><TMPL_VAR NAME=city></td>
31<td><TMPL_VAR NAME=type></td>
[568]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>
[913]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>
[827]34</td>
[467]35<td><TMPL_VAR NAME=desc></td>
36</tr>
37</TMPL_LOOP>
38</table>
39<TMPL_ELSE>
40<hr class="w30">
[627]41<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>
[568]42<TMPL_IF maydel>
[467]43<br>
[511]44<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
[513]45<fieldset><legend class="noshow">&nbsp;</legend>
[467]46<input type=hidden name=action value="delete">
[827]47<input type=hidden name=block value="<TMPL_VAR NAME=self_id>">
[627]48<input type=hidden name=basetype value="b">
[467]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
[568]59<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
[467]60
[568]61<TMPL_IF freelist>
[467]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
[568]68<TMPL_LOOP name=freelist>
[527]69<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[568]70<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
71<TMPL_ELSE>
72<td>
73<TMPL_IF mayadd>
[627]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>
[568]75<TMPL_ELSE>
76<TMPL_VAR NAME=fblock>
77</TMPL_IF>
[711]78<TMPL_IF resv><br>(Reserved to expand <TMPL_VAR NAME=resv>)</TMPL_IF>
[568]79</td>
[467]80<td><TMPL_VAR NAME=frange></td>
[568]81</TMPL_IF>
[467]82</tr>
83</TMPL_LOOP>
84</table>
85<TMPL_ELSE>
86<br>
87<hr class="w30">
[568]88<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
[467]89</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.