source: branches/stable/templates/showmaster.tmpl@ 727

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

/branches/stable

Hand-backport pieces of the allocate-from-routed-freeblock from /trunk
post-r553. Cherrypick merge not possible due to intermingled changes
relating to the database structure updates.
Includes a handful of harmless references to the new structure.
Will likely cause merge conflicts when the structure update is merged.

File size: 1.9 KB
Line 
1<div class="tbltitle">Summarizing routed blocks for <TMPL_VAR NAME=master>:</div>
2<br>
3
4<TMPL_IF routedlist>
5<table class="center" width="98%" cellspacing="0">
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_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
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>
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 ESCAPE=HTML NAME=lfree></td>
21</tr>
22</TMPL_LOOP>
23</table>
24<TMPL_ELSE>
25<hr class="w30">
26<div class="tbltitle">No allocations in <TMPL_VAR NAME=master>.
27<TMPL_IF delmaster>
28<br>
29<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
30<fieldset><legend class="noshow">&nbsp;</legend>
31<input type=hidden name=action value="delete">
32<input type=hidden name=block value="<TMPL_VAR NAME=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>
48<table class="center" width="98%" cellspacing="0">
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_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
56<td><TMPL_IF mayadd><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&block=<TMPL_VAR NAME=fblock>&fbtype=n"><TMPL_VAR NAME=fblock><TMPL_ELSE><TMPL_VAR NAME=fblock></TMPL_IF></td>
57<td><TMPL_VAR NAME=frange></td>
58</tr>
59</TMPL_LOOP>
60
61</table>
62<TMPL_ELSE>
63<hr class="w30">
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.