source: trunk/templates/showsubs.tmpl@ 601

Last change on this file since 601 was 568, checked in by Kris Deugau, 12 years ago

/trunk

Work in progress, see #5:
Also forgot about the new template for the new page in r566

File size: 2.6 KB
Line 
1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block></div>
2<br>
3<TMPL_VAR NAME=addperm>
4
5<TMPL_IF sublist>
6<table width="98%" cellspacing="0" class="center">
7
8<tr>
9<td class="heading">Netblock</td>
10<td class="heading">City</td>
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
17<TMPL_LOOP NAME=sublist>
18<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
19<td>
20<TMPL_IF hassubs>
21<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;block=<TMPL_VAR NAME=block>&amp;rdepth=<TMPL_VAR NAME=subdepth>"><TMPL_VAR NAME=block></a>
22<TMPL_ELSE>
23<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=block>&amp;rdepth=<TMPL_VAR NAME=rdepth>"><TMPL_VAR NAME=block></a>
24<TMPL_IF listpool> &nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=block>&amp;rdepth=<TMPL_VAR NAME=rdepth>">List IPs</a></TMPL_IF>
25</TMPL_IF>
26</td>
27<td><TMPL_VAR NAME=city></td>
28<td><TMPL_VAR NAME=type></td>
29<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>
30<td><TMPL_VAR NAME=swip><TMPL_IF partswip><small>*</small></TMPL_IF></td>
31<td><TMPL_VAR NAME=desc></td>
32</tr>
33</TMPL_LOOP>
34</table>
35<TMPL_ELSE>
36<hr class="w30">
37<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>.
38<TMPL_IF maydel>
39<br>
40<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
41<fieldset><legend class="noshow">&nbsp;</legend>
42<input type=hidden name=action value="delete">
43<input type=hidden name=block value="<TMPL_VAR NAME=block>">
44<input type=hidden name=rdepth value="<TMPL_VAR NAME=deldepth>">
45<input type=submit value=" Remove this block ">
46</fieldset>
47</form>
48</TMPL_IF>
49</div>
50</TMPL_IF>
51
52<br>
53<hr class="w60">
54
55<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
56
57<TMPL_IF freelist>
58<table width="98%" cellspacing="0" class="center">
59<tr>
60<td class="heading">CIDR block</td>
61<td class="heading">Range</td>
62</tr>
63
64<TMPL_LOOP name=freelist>
65<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
66<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
67<TMPL_ELSE>
68<td>
69<TMPL_IF mayadd>
70<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=fblock>&amp;rdepth=<TMPL_VAR NAME=rdepth>"><TMPL_VAR NAME=fblock></a>
71<TMPL_ELSE>
72<TMPL_VAR NAME=fblock>
73</TMPL_IF>
74</td>
75<td><TMPL_VAR NAME=frange></td>
76</TMPL_IF>
77</tr>
78</TMPL_LOOP>
79</table>
80<TMPL_ELSE>
81<br>
82<hr class="w30">
83<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
84</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.