Changeset 731 for trunk


Ignore:
Timestamp:
06/20/16 18:16:52 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Refine pages with alternating row colours to use CSS instead of
HTML::Template's even/odd loop specials, and move the
bottom-of-page first/previous/next/last/all blob out of the data table
into its own div for consistent layout.

Location:
trunk/templates
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/dns.css

    r722 r731  
    4141        background-color: #D0E0E0;
    4242}
     43.altrows > tbody > tr:nth-child(even) {
     44        background-color: #FFFFFF;
     45}
    4346.altrows > tbody > tr:nth-child(odd) {
    44         background-color: #FFFFFF;
    45 }
    46 .altrows > tbody > tr:nth-child(even) {
    4747        background-color: #DDDDDD;
    4848}
     
    200200.center {
    201201        text-align: center;
     202}
     203.vpad {
     204        padding-top: 5px;
     205        padding-bottom: 5px;
    202206}
    203207/* not sure this really does what I think it does.  is it really not
  • trunk/templates/domlist.tmpl

    r704 r731  
    2828</table>
    2929
    30 <table width="98%" border="0" cellspacing="4" cellpadding="3">
     30<table width="98%" border="0" cellspacing="4" cellpadding="3" class="altrows">
    3131<tr>
    3232<TMPL_LOOP NAME=colheads>       <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR
     
    4141<TMPL_IF name=domtable>
    4242<TMPL_LOOP name=domtable>
    43 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     43<tr>
    4444        <td align="left"><a href="<TMPL_VAR NAME=script_self>&amp;page=reclist&amp;id=<TMPL_VAR NAME=zoneid>&amp;defrec=n<TMPL_UNLESS domlist>&amp;revrec=y</TMPL_UNLESS>"><TMPL_VAR NAME=zone></a><TMPL_IF location> (<TMPL_VAR NAME=location>)</TMPL_IF></td>
    4545        <td><TMPL_IF status>Active<TMPL_ELSE>Inactive</TMPL_IF></td>
     
    4949</tr>
    5050</TMPL_LOOP>
    51 <tr><td colspan="5" align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td></tr>
    5251<TMPL_ELSE>
    5352<tr><td colspan="5" align="center">No <TMPL_IF domlist>domains<TMPL_ELSE>reverse zones</TMPL_IF> found</td></tr>
     
    5554</table>
    5655
     56<TMPL_IF domtable><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
     57
    5758</td>
    5859</tr>
  • trunk/templates/grpman.tmpl

    r589 r731  
    2424</table>
    2525
    26 <table width="98%" border="0" cellspacing="4" cellpadding="3">
     26<table width="98%" border="0" cellspacing="4" cellpadding="3" class="altrows">
    2727<tr>
    2828<TMPL_LOOP NAME=colheads>       <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR
     
    3838<TMPL_IF name=grouptable>
    3939<TMPL_LOOP name=grouptable>
    40 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     40<tr>
    4141        <td align="left"><TMPL_IF edgrp><a href="<TMPL_VAR NAME=script_self>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a><TMPL_ELSE><TMPL_VAR NAME=groupname></TMPL_IF></td>
    4242        <td><TMPL_VAR name=pgroup></td>
     
    4949</tr>
    5050</TMPL_LOOP>
    51 <tr><td colspan="6" align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td></tr>
    5251<TMPL_ELSE>
    5352<tr><td colspan="6" align="center">No groups found</td></tr>
     
    5554</table>
    5655
     56<TMPL_IF grouptable><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
     57
    5758</td>
    5859</tr>
  • trunk/templates/loclist.tmpl

    r589 r731  
    2121</table>
    2222
    23 <table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable">
     23<table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable altrows">
    2424<tr>
    2525<TMPL_LOOP NAME=colheads>       <td class="datahead_s"><a href="<TMPL_VAR
     
    3333<TMPL_IF name=loctable>
    3434<TMPL_LOOP name=loctable>
    35 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     35<tr>
    3636        <td align="left"><TMPL_IF edloc><a href="<TMPL_VAR NAME=script_self>&amp;page=location&amp;locact=edit&amp;loc=<TMPL_VAR NAME=location>"><TMPL_VAR NAME=description></a><TMPL_ELSE><TMPL_VAR NAME=description></TMPL_IF></td>
    3737        <td><TMPL_VAR name=iplist></td>
     
    4848</table>
    4949
     50<TMPL_IF loctable><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
     51
    5052</td>
    5153</tr>
  • trunk/templates/log.tmpl

    r589 r731  
    4242    </tr>
    4343</TMPL_LOOP>
    44     <tr><td colspan="5" align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td></tr>
    4544<TMPL_ELSE>
    4645    <tr class="datalinelight">
     
    5049</table>
    5150
     51<TMPL_IF logentries><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
     52
    5253</td>
    5354</tr>
  • trunk/templates/reclist.tmpl

    r589 r731  
    4949</table>
    5050
    51 <table width="100%">
     51<table width="100%" class="altrows">
    5252<TMPL_IF reclist>
    5353<tr class="darkrowheader">
     
    6262</tr>
    6363<TMPL_LOOP NAME=reclist>
    64 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     64<tr>
    6565<TMPL_IF fwdzone>
    6666        <td><TMPL_IF record_edit><a href="<TMPL_VAR NAME=script_self>&amp;page=record&amp;parentid=<TMPL_VAR
     
    8989</tr>
    9090</TMPL_LOOP>
    91 <tr class="darkrowheader"><td colspan="8" align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td></tr>
    9291<TMPL_ELSE>
    9392<tr><td colspan="8" align="center">No records found</td></tr>
    9493</TMPL_IF>
    9594</table>
     95
     96<TMPL_IF reclist><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
    9697
    9798</td></tr></table>
  • trunk/templates/recsearch.tmpl

    r723 r731  
    6767</table>
    6868
    69 <div class="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></div>
     69<TMPL_IF searchresults><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
    7070
    7171</td>
    7272</tr>
    7373</table>
    74 
  • trunk/templates/useradmin.tmpl

    r589 r731  
    2222</table>
    2323
    24 <table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable">
     24<table width="98%" border="0" cellspacing="4" cellpadding="3" class="csubtable altrows">
    2525<tr>
    2626<TMPL_LOOP NAME=colheads>       <td class="datahead_<TMPL_IF __first__>l<TMPL_ELSE>s</TMPL_IF>"><a href="<TMPL_VAR
     
    3434<TMPL_IF name=usertable>
    3535<TMPL_LOOP name=usertable>
    36 <tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
     36<tr>
    3737        <td align="left"><TMPL_IF eduser><a href="<TMPL_VAR NAME=script_self>&amp;page=user&amp;useraction=edit&amp;user=<TMPL_VAR NAME=user_id>"><TMPL_VAR NAME=username></a><TMPL_ELSE><TMPL_VAR NAME=username></TMPL_IF></td>
    3838        <td class="data_nowrap"><TMPL_VAR name=fname></td>
     
    5151</tr>
    5252</TMPL_LOOP>
    53 <tr><td colspan="6" align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td></tr>
    5453<TMPL_ELSE>
    5554<tr><td colspan="6" align="center">No users found</td></tr>
     
    5756</table>
    5857
     58<TMPL_IF usertable><div class="center vpad"><TMPL_INCLUDE NAME="fpnla.tmpl"></div></TMPL_IF>
     59
    5960</td>
    6061</tr>
Note: See TracChangeset for help on using the changeset viewer.