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_groups.jsp

    r6620 r6707  
    155155      item="<%=itemType%>"
    156156      subcontext="<%=subContext%>"
     157      filterrows="<%=cc.getFilterRows()%>"
    157158      subclass="fulltable"
    158159      >
     
    241242            <tbl:columnheaders />
    242243          </tbl:headerrow>
    243           <tbl:headerrow>
    244             <tbl:header subclass="index" />
    245             <tbl:header
    246               subclass="check"
    247               visible="<%=mode.hasCheck()%>"
    248               ><base:icon
    249                 id="check.uncheck"
    250                 image="check_uncheck.png"
    251                 tooltip="Check/uncheck all"
    252                  
    253               /></tbl:header>
    254             <tbl:header
    255               subclass="check"
    256               visible="<%=mode.hasRadio()%>"
    257               />
    258             <tbl:header
    259               subclass="icons"
    260               visible="<%=mode.hasIcons()%>"
    261               />
    262             <tbl:propertyfilter />
    263           </tbl:headerrow>
     244          <%
     245          int numFilters = cc.getNumPropertyFilters();
     246          int numRows = cc.getFilterRows();
     247          for (int filterNo = 0; filterNo < numRows; filterNo++)
     248          {
     249            boolean lastRow = filterNo == numRows-1;
     250            %>
     251            <tbl:headerrow>
     252              <tbl:header subclass="index" />
     253              <tbl:header
     254                subclass="check"
     255                visible="<%=mode.hasCheck()%>"
     256                ><base:icon
     257                  id="check.uncheck"
     258                  image="check_uncheck.png"
     259                  tooltip="Check/uncheck all"
     260                  visible="<%=lastRow%>"
     261                /></tbl:header>
     262              <tbl:header
     263                subclass="check"
     264                visible="<%=mode.hasRadio()%>"
     265                />
     266              <tbl:header
     267                subclass="icons"
     268                visible="<%=mode.hasIcons()%>"
     269                >
     270                <base:icon
     271                  subclass="link table-filter-row-action"
     272                  image="add.png"
     273                  tooltip="Add extra filter row"
     274                  visible="<%=lastRow%>"
     275                /><base:icon
     276                  subclass="link table-filter-row-action"
     277                  image="remove.png"
     278                  tooltip="Remove this filter row"
     279                  visible="<%=numRows > 1 || numFilters > 0 %>"
     280                  data-remove-row="<%=filterNo%>"
     281                />
     282              </tbl:header>
     283              <tbl:propertyfilter row="<%=filterNo%>" />
     284            </tbl:headerrow>
     285            <%
     286          }
     287          %>
    264288        </tbl:headers>
    265289        <tbl:rows>
Note: See TracChangeset for help on using the changeset viewer.