source: trunk/templates/showsubs.tmpl@ 644

Last change on this file since 644 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
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;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a>
22<TMPL_ELSE>
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>
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=del_id>">
44<input type=hidden name=basetype value="b">
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;fbid=<TMPL_VAR NAME=fbid>&amp;parent=<TMPL_VAR NAME=fbparent>"><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.