Ignore:
Timestamp:
03/10/16 18:02:41 (8 years ago)
Author:
Kris Deugau
Message:

/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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/showvrf.tmpl

    r815 r818  
    1 <div class="tbltitle">Master netblocks in <TMPL_VAR NAME=vrf></div>
     1<TMPL_UNLESS sub><div class="tbltitle">Master netblocks in <TMPL_VAR NAME=vrf></div></TMPL_UNLESS>
    22
    33<br>
    44<div class="center">
     5<TMPL_IF masterlist>
    56<table class="center altrows" width="98%" cellspacing="0">
    6 <TMPL_IF masterlist>
    77<tr class="heading">
    88<td>Master netblock</td>
     
    2121</tr>
    2222</TMPL_LOOP>
     23</table>
    2324<TMPL_ELSE>
    24 <tr class="heading">
    25 <td>No netblock data</td>
    26 </tr>
     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>
    2736</TMPL_IF>
    28 </table>
     37</div>
     38</TMPL_IF>
    2939<TMPL_IF addmaster>
    3040<br>
    31 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addmaster&vrf=<TMPL_VAR NAME=vrf>">Add new master block</a>
     41<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addmaster&amp;vrf=<TMPL_VAR NAME=vrf>">Add new master block</a>
    3242</TMPL_IF>
    3343</div>
Note: See TracChangeset for help on using the changeset viewer.