source: trunk/templates/showvrf.tmpl@ 818

Last change on this file since 818 was 818, checked in by Kris Deugau, 8 years ago

/trunk

Introduce a more "relaxed" layout for listing VRFs and master netblocks -
interleave the lists of master blocks for each VRF with the VRF heading,
instead of formally separating them onto different pages.

Refine and adapt showvrfs.tmpl to show the master blocks instead of
reinventing another wheel.

See #54.

File size: 1.2 KB
Line 
1<TMPL_UNLESS sub><div class="tbltitle">Master netblocks in <TMPL_VAR NAME=vrf></div></TMPL_UNLESS>
2
3<br>
4<div class="center">
5<TMPL_IF masterlist>
6<table class="center altrows" width="98%" cellspacing="0">
7<tr class="heading">
8<td>Master netblock</td>
9<td>Aggregation/Containers</td>
10<td>Allocated netblocks</td>
11<td>Free netblocks</td>
12<td>Largest free block</td>
13</tr>
14<TMPL_LOOP NAME=masterlist>
15<tr>
16<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=master></a></td>
17<td><TMPL_VAR NAME=routed></td>
18<td><TMPL_VAR NAME=allocated></td>
19<td><TMPL_VAR NAME=free></td>
20<td><TMPL_VAR ESCAPE=HTML NAME=bigfree></td>
21</tr>
22</TMPL_LOOP>
23</table>
24<TMPL_ELSE>
25<hr class="w30">
26<div class="tbltitle">No netblock data
27<TMPL_IF maydel>
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=vrf value="<TMPL_VAR NAME=vrf>">
33<input type=submit value=" Remove this VRF ">
34</fieldset>
35</form>
36</TMPL_IF>
37</div>
38</TMPL_IF>
39<TMPL_IF addmaster>
40<br>
41<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addmaster&amp;vrf=<TMPL_VAR NAME=vrf>">Add new master block</a>
42</TMPL_IF>
43</div>
44
Note: See TracBrowser for help on using the repository browser.