Ignore:
Timestamp:
Feb 2, 2015, 2:20:03 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #1912: Add more filter rows in list pages

Implemented in disk usage and change history lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/diskusage/list_users.jsp

    r6620 r6707  
    155155      item="<%=itemType%>"
    156156      subcontext="<%=subContext%>"
     157      filterrows="<%=cc.getFilterRows()%>"
    157158      subclass="fulltable"
    158159      >
     
    370371            <tbl:columnheaders />
    371372          </tbl:headerrow>
    372           <tbl:headerrow>
    373             <tbl:header subclass="index" />
    374             <tbl:header
    375               subclass="check"
    376               visible="<%=mode.hasCheck()%>"
    377               ><base:icon
    378                 id="check.uncheck"
    379                 image="check_uncheck.png"
    380                 tooltip="Check/uncheck all"
    381                  
    382               /></tbl:header>
    383             <tbl:header
    384               subclass="check"
    385               visible="<%=mode.hasRadio()%>"
    386               />
    387             <tbl:header
    388               subclass="icons"
    389               visible="<%=mode.hasIcons()%>"
    390               />
    391             <tbl:propertyfilter />
    392           </tbl:headerrow>
     373          <%
     374          int numFilters = cc.getNumPropertyFilters();
     375          int numRows = cc.getFilterRows();
     376          for (int filterNo = 0; filterNo < numRows; filterNo++)
     377          {
     378            boolean lastRow = filterNo == numRows-1;
     379            %>
     380            <tbl:headerrow>
     381              <tbl:header subclass="index" />
     382              <tbl:header
     383                subclass="check"
     384                visible="<%=mode.hasCheck()%>"
     385                ><base:icon
     386                  id="check.uncheck"
     387                  image="check_uncheck.png"
     388                  tooltip="Check/uncheck all"
     389                  visible="<%=lastRow%>"
     390                /></tbl:header>
     391              <tbl:header
     392                subclass="check"
     393                visible="<%=mode.hasRadio()%>"
     394                />
     395              <tbl:header
     396                subclass="icons"
     397                visible="<%=mode.hasIcons()%>"
     398                >
     399                <base:icon
     400                  subclass="link table-filter-row-action"
     401                  image="add.png"
     402                  tooltip="Add extra filter row"
     403                  visible="<%=lastRow%>"
     404                /><base:icon
     405                  subclass="link table-filter-row-action"
     406                  image="remove.png"
     407                  tooltip="Remove this filter row"
     408                  visible="<%=numRows > 1 || numFilters > 0 %>"
     409                  data-remove-row="<%=filterNo%>"
     410                />
     411              </tbl:header>
     412              <tbl:propertyfilter row="<%=filterNo%>" />
     413            </tbl:headerrow>
     414            <%
     415          }
     416          %>
    393417        </tbl:headers>
    394418        <tbl:rows>
Note: See TracChangeset for help on using the changeset viewer.