source: trunk/templates/showsubs.tmpl@ 622

Last change on this file since 622 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
RevLine 
[568]1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block></div>
[467]2<br>
[568]3<TMPL_VAR NAME=addperm>
[467]4
[568]5<TMPL_IF sublist>
[467]6<table width="98%" cellspacing="0" class="center">
7
8<tr>
[568]9<td class="heading">Netblock</td>
10<td class="heading">City</td>
[467]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
[568]17<TMPL_LOOP NAME=sublist>
[527]18<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[467]19<td>
[568]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>
[467]26</td>
27<td><TMPL_VAR NAME=city></td>
28<td><TMPL_VAR NAME=type></td>
[568]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>
[527]30<td><TMPL_VAR NAME=swip><TMPL_IF partswip><small>*</small></TMPL_IF></td>
[467]31<td><TMPL_VAR NAME=desc></td>
32</tr>
33</TMPL_LOOP>
34</table>
35<TMPL_ELSE>
36<hr class="w30">
[568]37<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>.
38<TMPL_IF maydel>
[467]39<br>
[511]40<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
[513]41<fieldset><legend class="noshow">&nbsp;</legend>
[467]42<input type=hidden name=action value="delete">
[568]43<input type=hidden name=block value="<TMPL_VAR NAME=block>">
44<input type=hidden name=rdepth value="<TMPL_VAR NAME=deldepth>">
[467]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
[568]55<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
[467]56
[568]57<TMPL_IF freelist>
[467]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
[568]64<TMPL_LOOP name=freelist>
[527]65<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[568]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>
[467]75<td><TMPL_VAR NAME=frange></td>
[568]76</TMPL_IF>
[467]77</tr>
78</TMPL_LOOP>
79</table>
80<TMPL_ELSE>
81<br>
82<hr class="w30">
[568]83<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
[467]84</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.