source: branches/htmlform/templates/showrouted.tmpl@ 754

Last change on this file since 754 was 513, checked in by Kris Deugau, 12 years ago

/branches/htmlform

Finally dug up a least-nasty way to effectively get rid of the
useless <legend> tag (required in a <fieldset>, in turn required
in a <form>, if you want to be valid HTML 4.01 Strict).
See #3.

File size: 2.1 KB
Line 
1<div class="tbltitle">Summarizing allocated blocks for <TMPL_VAR NAME=master> (<TMPL_VAR NAME=rcity>):</div>
2<br>
3
4<TMPL_IF blocklist>
5<table width="98%" cellspacing="0" class="center">
6
7<tr>
8<td class="heading">CIDR allocation</td>
9<td class="heading">Customer Location</td>
10<td class="heading">Type</td>
11<td class="heading">CustID</td>
12<td class="heading">SWIPed?</td>
13<td class="heading">Description/Name</td>
14</tr>
15
16<TMPL_LOOP NAME=blocklist>
17<tr class="row<TMPL_VAR NAME=rowclass>">
18<td>
19<TMPL_IF subblock>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a>
20<TMPL_IF listpool> &nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF>
21</td>
22<td><TMPL_VAR NAME=city></td>
23<td><TMPL_VAR NAME=type></td>
24<td><TMPL_VAR NAME=custid></td>
25<td><TMPL_VAR NAME=swip></td>
26<td><TMPL_VAR NAME=desc></td>
27</tr>
28</TMPL_LOOP>
29</table>
30<TMPL_ELSE>
31<hr class="w30">
32<div class="tbltitle">No allocations in <TMPL_VAR NAME=master>.
33<TMPL_IF delrouted>
34<br>
35<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
36<fieldset><legend class="noshow">&nbsp;</legend>
37<input type=hidden name=action value="delete">
38<input type=hidden name=block value="1.2.12.0/23">
39<input type=hidden name=alloctype value="rm">
40<input type=submit value=" Remove this block ">
41</fieldset>
42</form>
43</TMPL_IF>
44</div>
45</TMPL_IF>
46
47<br>
48<hr class="w60">
49
50<div class="tbltitle">Free blocks within routed block <TMPL_VAR NAME=master></div>
51
52<TMPL_IF unassigned>
53<table width="98%" cellspacing="0" class="center">
54<tr>
55<td class="heading">CIDR block</td>
56<td class="heading">Range</td>
57</tr>
58
59<TMPL_LOOP name=unassigned>
60<tr class="row<TMPL_VAR NAME=rowclass>">
61<td><TMPL_IF subblock>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=fblock>&amp;fbtype=<TMPL_VAR NAME=fbtype>"><TMPL_VAR NAME=fblock></a></td>
62<td><TMPL_VAR NAME=frange></td>
63</tr>
64</TMPL_LOOP>
65</table>
66<TMPL_ELSE>
67<br>
68<hr class="w30">
69<div class="tbltitle">No unassigned blocks in routed block <TMPL_VAR NAME=master></div>
70</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.