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/details/view_details.jsp

    r6621 r6707  
    308308        item="<%=itemType%>"
    309309        subcontext="<%=subContext%>"
     310        filterrows="<%=cc.getFilterRows()%>"
    310311        >
    311312        <tbl:hidden
     
    416417              <tbl:columnheaders />
    417418            </tbl:headerrow>
     419          <%
     420          int numFilters = cc.getNumPropertyFilters();
     421          int numRows = cc.getFilterRows();
     422          for (int filterNo = 0; filterNo < numRows; filterNo++)
     423          {
     424            boolean lastRow = filterNo == numRows-1;
     425            %>
    418426            <tbl:headerrow>
    419427              <tbl:header subclass="index" />
    420428              <tbl:header
    421                 subclass="check"
     429                subclass="check" 
    422430                ><base:icon
    423431                  id="check.uncheck"
    424432                  image="check_uncheck.png"
    425433                  tooltip="Check/uncheck all"
    426                    
     434                  visible="<%=lastRow%>"
    427435                /></tbl:header>
    428436              <tbl:header
    429437                subclass="icons"
     438                >
     439                <base:icon
     440                  subclass="link table-filter-row-action"
     441                  image="add.png"
     442                  tooltip="Add extra filter row"
     443                  visible="<%=lastRow%>"
     444                /><base:icon
     445                  subclass="link table-filter-row-action"
     446                  image="remove.png"
     447                  tooltip="Remove this filter row"
     448                  visible="<%=numRows > 1 || numFilters > 0 %>"
     449                  data-remove-row="<%=filterNo%>"
    430450                />
    431               <tbl:propertyfilter />
     451              </tbl:header>
     452              <tbl:propertyfilter row="<%=filterNo%>" />
    432453            </tbl:headerrow>
     454            <%
     455          }
     456          %>
    433457          </tbl:headers>
    434458          <tbl:rows>
Note: See TracChangeset for help on using the changeset viewer.