Ignore:
Timestamp:
01/29/15 17:02:06 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

CSS and layout cleanup, sort of. Convert tables with alternating row
colours to pure CSS (mainly to make addition of future fields, and future
*optional* or restricted-access fields, much easier). Play a little loose
with table structure to let headings and in-page "titles" continue to show
the main background colour instead of the "first line of the table" colour.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/showsubs.tmpl

    r682 r687  
    1 <div class="tbltitle">Subnets in <TMPL_VAR NAME=block></div>
     1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block>
     2(<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=self_id>&amp;basetype=b">Edit</a>)
     3</div>
     4
    25<TMPL_VAR NAME=addperm>
    36
    47<TMPL_IF contlist>
    5 <br>
    68<hr class="w30">
    79<div class="tbltitle">Containers</div>
    810<br>
    9 <table class="center" width="98%" cellspacing="0">
    10 <tr>
     11<table class="center altrows" width="98%" cellspacing="0">
     12<tr class="headrow">
    1113<td class="heading">Container block</td>
    1214<td class="heading">Location</td>
     
    1921
    2022<TMPL_LOOP NAME=contlist>
    21 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     23<tr>
    2224<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a></td>
    2325<td><TMPL_VAR NAME=city></td>
     
    3941<div class="tbltitle">Usage allocations</div>
    4042<br>
    41 <table width="98%" cellspacing="0" class="center">
     43<table width="98%" cellspacing="0" class="center altrows">
    4244<tr>
    4345<td class="heading">CIDR allocation</td>
     
    5052
    5153<TMPL_LOOP NAME=alloclist>
    52 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     54<tr>
    5355<td>
    5456<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=id>&amp;basetype=b"><TMPL_VAR NAME=block></a>
     
    7476<fieldset><legend class="noshow">&nbsp;</legend>
    7577<input type=hidden name=action value="delete">
    76 <input type=hidden name=block value="<TMPL_VAR NAME=del_id>">
     78<input type=hidden name=block value="<TMPL_VAR NAME=self_id>">
    7779<input type=hidden name=basetype value="b">
    7880<input type=submit value=" Remove this block ">
     
    8890
    8991<TMPL_IF freelist>
    90 <table width="98%" cellspacing="0" class="center">
     92<table width="98%" cellspacing="0" class="center altrows">
    9193<tr>
    9294<td class="heading">CIDR block</td>
     
    9597
    9698<TMPL_LOOP name=freelist>
    97 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     99<tr>
    98100<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
    99101<TMPL_ELSE>
Note: See TracChangeset for help on using the changeset viewer.