source: trunk/templates/showsubs.tmpl@ 639

Last change on this file since 639 was 627, checked in by Kris Deugau, 10 years ago

/trunk

Commit 3/mumble for work done intermittently over the past ~year.
See #5, comment 25:

  • Update suballocation list/summary; IPDB::listSubs(), main.cgi:showSubs(), and page template
File size: 2.5 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>
[627]21<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a>
[568]22<TMPL_ELSE>
[627]23<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>
24<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]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">
[627]37<div class="tbltitle">No allocations in <TMPL_VAR NAME=block>
[568]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">
[627]43<input type=hidden name=block value="<TMPL_VAR NAME=del_id>">
44<input type=hidden name=basetype value="b">
[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>
[627]70<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]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.