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

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

/branches/htmlform

Fix buglet in showmaster.tmpl that prevented block from being
passed on for deletion
Fix formatting buglet in showrouted.tmpl
Convert confirm-delete to template.
See #3.

File size: 1.6 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_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>
25<hr class="w30">
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="<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_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>
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.