source: trunk/templates/showsubs2.tmpl@ 811

Last change on this file since 811 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
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>)
3</div>
4<br>
5
6<TMPL_IF sublist>
7<table width="98%" cellspacing="0" class="center">
8
9<tr>
10<td class="heading">Netblock</td>
11<td class="heading">City</td>
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
18<TMPL_LOOP NAME=sublist>
19<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
20<td>
21<TMPL_IF subblock>Sub </TMPL_IF>
22<TMPL_IF hassubs>
23<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a>
24<TMPL_ELSE>
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>
27</TMPL_IF>
28</td>
29<td><TMPL_VAR NAME=city></td>
30<td><TMPL_VAR NAME=type></td>
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>
32<td><TMPL_VAR NAME=swip><TMPL_IF partswip><small>*</small></TMPL_IF></td>
33<td><TMPL_VAR NAME=desc></td>
34</tr>
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>
41</TMPL_LOOP>
42</table>
43<TMPL_ELSE>
44<hr class="w30">
45<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>
46<TMPL_IF maydel>
47<br>
48<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
49<fieldset><legend class="noshow">&nbsp;</legend>
50<input type=hidden name=action value="delete">
51<input type=hidden name=block value="<TMPL_VAR NAME=del_id>">
52<input type=hidden name=basetype value="b">
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
63<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
64
65<TMPL_IF freelist>
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
72<TMPL_LOOP name=freelist>
73<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
74<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
75<TMPL_ELSE>
76<td>
77<TMPL_IF mayadd>
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>
79<TMPL_ELSE>
80<TMPL_VAR NAME=fblock>
81</TMPL_IF>
82<TMPL_IF resv><br>(Reserved to expand <TMPL_VAR NAME=resv>)</TMPL_IF>
83</td>
84<td><TMPL_VAR NAME=frange></td>
85</TMPL_IF>
86</tr>
87</TMPL_LOOP>
88</table>
89<TMPL_ELSE>
90<br>
91<hr class="w30">
92<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
93</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.