Changeset 4386


Ignore:
Timestamp:
Aug 8, 2008, 2:33:26 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

References #1033: Mark columns containing unique information in list views

Implemented support for this and tested with the reporters table. Now it only remains to mark all columns with the appropriate code. It is rather easy. Just add clazz="uniquecol" to the <columndef> tag. To change the appearance of the unique column change the style definition in table.css.

Location:
trunk/www
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/include/styles/table.css

    r3679 r4386  
    131131}
    132132
    133 .itemlist .data .columnheader {
    134   font-weight: bold;
    135   white-space: nowrap;
    136   border-top: 1px solid #FFFFFF;
    137   border-left: 1px solid #FFFFFF;
    138   border-bottom: 1px solid #999999;
    139   border-right: 1px solid #999999;
    140   padding: 1px 3px 1px 3px;
    141   vertical-align: middle;
    142 }
     133.itemlist .data .columnheader, .itemlist .data .uniquecol {
     134  font-weight: bold;
     135  white-space: nowrap;
     136  border-top: 1px solid #FFFFFF;
     137  border-left: 1px solid #FFFFFF;
     138  border-bottom: 1px solid #999999;
     139  border-right: 1px solid #999999;
     140  padding: 1px 3px 1px 3px;
     141  vertical-align: middle;
     142}
     143
     144.itemlist .data .uniquecol:before {
     145  content: url('../../images/unique.png');
     146  vertical-align: middle;
     147}
     148
    143149
    144150.itemlist .data .propertyfilter {
  • trunk/www/views/reporters/list_reporters.jsp

    r4332 r4386  
    200200      <tbl:columndef
    201201        id="externalId"
     202        clazz="uniquecol"
    202203        property="externalId"
    203204        datatype="string"
     
    219220      <tbl:columndef
    220221        id="id"
     222        clazz="uniquecol"
    221223        property="id"
    222224        datatype="int"
Note: See TracChangeset for help on using the changeset viewer.