Changeset 6707


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

References #1912: Add more filter rows in list pages

Implemented in disk usage and change history lists.

Location:
trunk/www
Files:
4 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>
  • 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>
  • 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>
  • trunk/www/common/history/list_history.jsp

    r6604 r6707  
    117117      sc="<%=sc%>"
    118118      item="<%=itemType%>"
     119      filterrows="<%=cc.getFilterRows()%>"
    119120      subclass="fulltable"
    120121      >
     
    302303            <tbl:columnheaders />
    303304          </tbl:headerrow>
    304           <tbl:headerrow>
    305             <tbl:header subclass="index" />
    306             <tbl:header
    307               subclass="check"
    308               visible="<%=mode.hasCheck()%>"
    309               ><base:icon
    310                 id="check.uncheck"
    311                 image="check_uncheck.png"
    312                 tooltip="Check/uncheck all"
    313                  
    314               /></tbl:header>
    315             <tbl:header
    316               subclass="check"
    317               visible="<%=mode.hasRadio()%>"
    318               />
    319             <tbl:header
    320               subclass="icons"
    321               visible="<%=mode.hasIcons()%>"
    322               />
    323             <tbl:propertyfilter />
    324           </tbl:headerrow>
     305          <%
     306          int numFilters = cc.getNumPropertyFilters();
     307          int numRows = cc.getFilterRows();
     308          for (int filterNo = 0; filterNo < numRows; filterNo++)
     309          {
     310            boolean lastRow = filterNo == numRows-1;
     311            %>
     312            <tbl:headerrow>
     313              <tbl:header subclass="index" />
     314              <tbl:header
     315                subclass="check"
     316                visible="<%=mode.hasCheck()%>"
     317                ><base:icon
     318                  id="check.uncheck"
     319                  image="check_uncheck.png"
     320                  tooltip="Check/uncheck all"
     321                  visible="<%=lastRow%>"
     322                /></tbl:header>
     323              <tbl:header
     324                subclass="check"
     325                visible="<%=mode.hasRadio()%>"
     326                />
     327              <tbl:header
     328                subclass="icons"
     329                visible="<%=mode.hasIcons()%>"
     330                >
     331                <base:icon
     332                  subclass="link table-filter-row-action"
     333                  image="add.png"
     334                  tooltip="Add extra filter row"
     335                  visible="<%=lastRow%>"
     336                /><base:icon
     337                  subclass="link table-filter-row-action"
     338                  image="remove.png"
     339                  tooltip="Remove this filter row"
     340                  visible="<%=numRows > 1 || numFilters > 0 %>"
     341                  data-remove-row="<%=filterNo%>"
     342                />
     343              </tbl:header>
     344              <tbl:propertyfilter row="<%=filterNo%>" />
     345            </tbl:headerrow>
     346            <%
     347          }
     348          %>
    325349        </tbl:headers>
    326350        <tbl:rows>
Note: See TracChangeset for help on using the changeset viewer.