source: branches/htmlform/templates/showmaster.tmpl@ 471

Last change on this file since 471 was 466, checked in by Kris Deugau, 14 years ago

/branches/htmlform

Give up on proper spelling of "centre" in CSS class names and
defs - browsers only understand an alignment of "center".
Adjust width of some <hr>'s
Visual row0/row1 classes got switched somehow, somewhere
Remove legacy "color0/color1/color2" row class defs
Convert showrouted to template
See #3.

File size: 1.6 KB
RevLine 
[465]1<div class="tbltitle">Summarizing routed blocks for <TMPL_VAR NAME=master>:</div>
2<br>
3
4<TMPL_IF routedlist>
[466]5<table class="center" width="98%" cellspacing="0">
[465]6<tr>
7<td class="heading">Routed block</td>
8<td class="heading">Routed to</td>
9<td class="heading">Allocated blocks</td>
10<td class="heading">Free blocks</td>
11<td class="heading">Largest free block</td>
12</tr>
13
14<TMPL_LOOP NAME=routedlist>
15<tr class="row<TMPL_VAR NAME=rowclass>">
16<td><a href="/ip/cgi-bin/main.cgi?action=showrouted&amp;block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a></td>
17<td><TMPL_VAR NAME=city></td>
18<td><TMPL_VAR NAME=nsubs></td>
19<td><TMPL_VAR NAME=nfree></td>
20<td><TMPL_VAR NAME=lfree></td>
21</tr>
22</TMPL_LOOP>
23</table>
24<TMPL_ELSE>
[466]25<hr class="w30">
[465]26<div class="tbltitle">No allocations in <TMPL_VAR NAME=master>.
27<TMPL_IF delmaster>
28<br>
29<form action="/ip/cgi-bin/main.cgi" method=POST>
30<fieldset><legend></legend>
31<input type=hidden name=action value="delete">
32<input type=hidden name=block value="$master">
33<input type=hidden name=alloctype value="mm">
34<input type=submit value=" Remove this master ">
35</fieldset>
36</form>
37</TMPL_IF>
38</div>
39</TMPL_IF>
40
41<br>
42<hr class="w60">
43
44<div class="tbltitle">Unrouted blocks in <TMPL_VAR NAME=master>:</div>
45<br>
46
47<TMPL_IF NAME=unrouted>
[466]48<table class="center" width="98%" cellspacing="0">
[465]49<tr>
50<td class="heading">Netblock</td>
51<td class="heading">Range</td>
52</tr>
53
54<TMPL_LOOP name=unrouted>
55<tr class="row<TMPL_VAR NAME=rowclass>">
56<td><TMPL_VAR NAME=fblock></td>
57<td><TMPL_VAR NAME=frange></td>
58</tr>
59</TMPL_LOOP>
60
61</table>
62<TMPL_ELSE>
[466]63<hr class="w30">
[465]64<div class="tbltitle">No unrouted blocks in <TMPL_VAR NAME=master>.</div>
65</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.