source: trunk/templates/showsubs2.tmpl@ 841

Last change on this file since 841 was 827, checked in by Kris Deugau, 9 years ago

/trunk

Commit refined showsubs2 template

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