source: trunk/templates/showsubs2.tmpl@ 952

Last change on this file since 952 was 917, checked in by Kris Deugau, 7 years ago

/trunk

Continue adding a generalized block-notice system. See #17 and #23, sort of.

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