source: trunk/templates/showmaster.tmpl@ 551

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

/trunk

Found the HTML::Template knob to twist to allow listMaster() etc to
pass back '<NONE>' instead of '&lt;NONE&gt;'. See #34, #3 (sort of).

File size: 1.7 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>
[524]15<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[511]16<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showrouted&amp;block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a></td>
[465]17<td><TMPL_VAR NAME=city></td>
18<td><TMPL_VAR NAME=nsubs></td>
19<td><TMPL_VAR NAME=nfree></td>
[525]20<td><TMPL_VAR ESCAPE=HTML NAME=lfree></td>
[465]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>
[511]29<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
[513]30<fieldset><legend class="noshow">&nbsp;</legend>
[465]31<input type=hidden name=action value="delete">
[474]32<input type=hidden name=block value="<TMPL_VAR NAME=master>">
[465]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>
[524]55<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
[465]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.