Changeset 6706


Ignore:
Timestamp:
Feb 2, 2015, 1:42:10 PM (9 years ago)
Author:
Nicklas Nordborg
Message:

References #1912: Add more filter rows in list pages

Implemented in Administrate->Platforms and Administrate->Types menus.

Location:
trunk/www/admin
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/annotationtypecategories/list_categories.jsp

    r6604 r6706  
    130130      sc="<%=sc%>"
    131131      item="<%=itemType%>"
     132      filterrows="<%=cc.getFilterRows()%>"
    132133      subclass="fulltable"
    133134      >
     
    299300            <tbl:columnheaders />
    300301          </tbl:headerrow>
    301           <tbl:headerrow>
    302             <tbl:header subclass="index" />
    303             <tbl:header
    304               subclass="check"
    305               visible="<%=mode.hasCheck()%>"
    306               ><base:icon
    307                 id="check.uncheck"
    308                 image="check_uncheck.png"
    309                 tooltip="Check/uncheck all"
    310                  
    311               /></tbl:header>
    312             <tbl:header
    313               subclass="check"
    314               visible="<%=mode.hasRadio()%>"
    315               />
    316             <tbl:header
    317               subclass="icons"
    318               visible="<%=mode.hasIcons()%>"
    319               />
    320             <tbl:propertyfilter />
    321           </tbl:headerrow>
     302          <%
     303          int numFilters = cc.getNumPropertyFilters();
     304          int numRows = cc.getFilterRows();
     305          for (int filterNo = 0; filterNo < numRows; filterNo++)
     306          {
     307            boolean lastRow = filterNo == numRows-1;
     308            %>
     309            <tbl:headerrow>
     310              <tbl:header subclass="index" />
     311              <tbl:header
     312                subclass="check"
     313                visible="<%=mode.hasCheck()%>"
     314                ><base:icon
     315                  id="check.uncheck"
     316                  image="check_uncheck.png"
     317                  tooltip="Check/uncheck all"
     318                  visible="<%=lastRow%>"
     319                /></tbl:header>
     320              <tbl:header
     321                subclass="check"
     322                visible="<%=mode.hasRadio()%>"
     323                />
     324              <tbl:header
     325                subclass="icons"
     326                visible="<%=mode.hasIcons()%>"
     327                >
     328                <base:icon
     329                  subclass="link table-filter-row-action"
     330                  image="add.png"
     331                  tooltip="Add extra filter row"
     332                  visible="<%=lastRow%>"
     333                /><base:icon
     334                  subclass="link table-filter-row-action"
     335                  image="remove.png"
     336                  tooltip="Remove this filter row"
     337                  visible="<%=numRows > 1 || numFilters > 0 %>"
     338                  data-remove-row="<%=filterNo%>"
     339                />
     340              </tbl:header>
     341              <tbl:propertyfilter row="<%=filterNo%>" />
     342            </tbl:headerrow>
     343            <%
     344          }
     345          %>
    322346        </tbl:headers>
    323347        <tbl:rows>
  • trunk/www/admin/annotationtypes/list_annotationtypes.jsp

    r6604 r6706  
    172172      sc="<%=sc%>"
    173173      item="<%=itemType%>"
     174      filterrows="<%=cc.getFilterRows()%>"
    174175      subclass="fulltable"
    175176      >
     
    455456            <tbl:columnheaders />
    456457          </tbl:headerrow>
    457           <tbl:headerrow>
    458             <tbl:header subclass="index" />
    459             <tbl:header
    460               subclass="check"
    461               visible="<%=mode.hasCheck()%>"
    462               ><base:icon
    463                 id="check.uncheck"
    464                 image="check_uncheck.png"
    465                 tooltip="Check/uncheck all"
    466                  
    467               /></tbl:header>
    468             <tbl:header
    469               subclass="check"
    470               visible="<%=mode.hasRadio()%>"
    471               />
    472             <tbl:header
    473               subclass="icons"
    474               visible="<%=mode.hasIcons()%>"
    475               />
    476             <tbl:propertyfilter />
    477           </tbl:headerrow>
     458          <%
     459          int numFilters = cc.getNumPropertyFilters();
     460          int numRows = cc.getFilterRows();
     461          for (int filterNo = 0; filterNo < numRows; filterNo++)
     462          {
     463            boolean lastRow = filterNo == numRows-1;
     464            %>
     465            <tbl:headerrow>
     466              <tbl:header subclass="index" />
     467              <tbl:header
     468                subclass="check"
     469                visible="<%=mode.hasCheck()%>"
     470                ><base:icon
     471                  id="check.uncheck"
     472                  image="check_uncheck.png"
     473                  tooltip="Check/uncheck all"
     474                  visible="<%=lastRow%>"
     475                /></tbl:header>
     476              <tbl:header
     477                subclass="check"
     478                visible="<%=mode.hasRadio()%>"
     479                />
     480              <tbl:header
     481                subclass="icons"
     482                visible="<%=mode.hasIcons()%>"
     483                >
     484                <base:icon
     485                  subclass="link table-filter-row-action"
     486                  image="add.png"
     487                  tooltip="Add extra filter row"
     488                  visible="<%=lastRow%>"
     489                /><base:icon
     490                  subclass="link table-filter-row-action"
     491                  image="remove.png"
     492                  tooltip="Remove this filter row"
     493                  visible="<%=numRows > 1 || numFilters > 0 %>"
     494                  data-remove-row="<%=filterNo%>"
     495                />
     496              </tbl:header>
     497              <tbl:propertyfilter row="<%=filterNo%>" />
     498            </tbl:headerrow>
     499            <%
     500          }
     501          %>
    478502        </tbl:headers>
    479503        <tbl:rows>
  • trunk/www/admin/datafiletypes/list_filetypes.jsp

    r6604 r6706  
    144144      sc="<%=sc%>"
    145145      item="<%=itemType%>"
     146      filterrows="<%=cc.getFilterRows()%>"
    146147      subclass="fulltable"
    147148      >
     
    312313            <tbl:columnheaders />
    313314          </tbl:headerrow>
    314           <tbl:headerrow>
    315             <tbl:header subclass="index" />
    316             <tbl:header
    317               subclass="check"
    318               visible="<%=mode.hasCheck()%>"
    319               ><base:icon
    320                 id="check.uncheck"
    321                 image="check_uncheck.png"
    322                 tooltip="Check/uncheck all"
    323                  
    324               /></tbl:header>
    325             <tbl:header
    326               subclass="check"
    327               visible="<%=mode.hasRadio()%>"
    328               />
    329             <tbl:header
    330               subclass="icons"
    331               visible="<%=mode.hasIcons()%>"
    332               />
    333             <tbl:propertyfilter />
    334           </tbl:headerrow>
     315          <%
     316          int numFilters = cc.getNumPropertyFilters();
     317          int numRows = cc.getFilterRows();
     318          for (int filterNo = 0; filterNo < numRows; filterNo++)
     319          {
     320            boolean lastRow = filterNo == numRows-1;
     321            %>
     322            <tbl:headerrow>
     323              <tbl:header subclass="index" />
     324              <tbl:header
     325                subclass="check"
     326                visible="<%=mode.hasCheck()%>"
     327                ><base:icon
     328                  id="check.uncheck"
     329                  image="check_uncheck.png"
     330                  tooltip="Check/uncheck all"
     331                  visible="<%=lastRow%>"
     332                /></tbl:header>
     333              <tbl:header
     334                subclass="check"
     335                visible="<%=mode.hasRadio()%>"
     336                />
     337              <tbl:header
     338                subclass="icons"
     339                visible="<%=mode.hasIcons()%>"
     340                >
     341                <base:icon
     342                  subclass="link table-filter-row-action"
     343                  image="add.png"
     344                  tooltip="Add extra filter row"
     345                  visible="<%=lastRow%>"
     346                /><base:icon
     347                  subclass="link table-filter-row-action"
     348                  image="remove.png"
     349                  tooltip="Remove this filter row"
     350                  visible="<%=numRows > 1 || numFilters > 0 %>"
     351                  data-remove-row="<%=filterNo%>"
     352                />
     353              </tbl:header>
     354              <tbl:propertyfilter row="<%=filterNo%>" />
     355            </tbl:headerrow>
     356            <%
     357          }
     358          %>
    335359        </tbl:headers>
    336360        <tbl:rows>
  • trunk/www/admin/extravaluetypes/list_extravaluetypes.jsp

    r6604 r6706  
    129129      sc="<%=sc%>"
    130130      item="<%=itemType%>"
     131      filterrows="<%=cc.getFilterRows()%>"
    131132      subclass="fulltable"
    132133      >
     
    334335            <tbl:columnheaders />
    335336          </tbl:headerrow>
    336           <tbl:headerrow>
    337             <tbl:header subclass="index" />
    338             <tbl:header
    339               subclass="check"
    340               visible="<%=mode.hasCheck()%>"
    341               ><base:icon
    342                 id="check.uncheck"
    343                 image="check_uncheck.png"
    344                 tooltip="Check/uncheck all"
    345                  
    346               /></tbl:header>
    347             <tbl:header
    348               subclass="check"
    349               visible="<%=mode.hasRadio()%>"
    350               />
    351             <tbl:header
    352               subclass="icons"
    353               visible="<%=mode.hasIcons()%>"
    354               />
    355             <tbl:propertyfilter />
    356           </tbl:headerrow>
     337          <%
     338          int numFilters = cc.getNumPropertyFilters();
     339          int numRows = cc.getFilterRows();
     340          for (int filterNo = 0; filterNo < numRows; filterNo++)
     341          {
     342            boolean lastRow = filterNo == numRows-1;
     343            %>
     344            <tbl:headerrow>
     345              <tbl:header subclass="index" />
     346              <tbl:header
     347                subclass="check"
     348                visible="<%=mode.hasCheck()%>"
     349                ><base:icon
     350                  id="check.uncheck"
     351                  image="check_uncheck.png"
     352                  tooltip="Check/uncheck all"
     353                  visible="<%=lastRow%>"
     354                /></tbl:header>
     355              <tbl:header
     356                subclass="check"
     357                visible="<%=mode.hasRadio()%>"
     358                />
     359              <tbl:header
     360                subclass="icons"
     361                visible="<%=mode.hasIcons()%>"
     362                >
     363                <base:icon
     364                  subclass="link table-filter-row-action"
     365                  image="add.png"
     366                  tooltip="Add extra filter row"
     367                  visible="<%=lastRow%>"
     368                /><base:icon
     369                  subclass="link table-filter-row-action"
     370                  image="remove.png"
     371                  tooltip="Remove this filter row"
     372                  visible="<%=numRows > 1 || numFilters > 0 %>"
     373                  data-remove-row="<%=filterNo%>"
     374                />
     375              </tbl:header>
     376              <tbl:propertyfilter row="<%=filterNo%>" />
     377            </tbl:headerrow>
     378            <%
     379          }
     380          %>
    357381        </tbl:headers>
    358382        <tbl:rows>
  • trunk/www/admin/itemsubtypes/list_subtypes.jsp

    r6604 r6706  
    140140      sc="<%=sc%>"
    141141      item="<%=itemType%>"
     142      filterrows="<%=cc.getFilterRows()%>"
    142143      subclass="fulltable"
    143144      >
     
    316317            <tbl:columnheaders />
    317318          </tbl:headerrow>
    318           <tbl:headerrow>
    319             <tbl:header subclass="index" />
    320             <tbl:header
    321               subclass="check"
    322               visible="<%=mode.hasCheck()%>"
    323               ><base:icon
    324                 id="check.uncheck"
    325                 image="check_uncheck.png"
    326                 tooltip="Check/uncheck all"
    327                  
    328               /></tbl:header>
    329             <tbl:header
    330               subclass="check"
    331               visible="<%=mode.hasRadio()%>"
    332               />
    333             <tbl:header
    334               subclass="icons"
    335               visible="<%=mode.hasIcons()%>"
    336               />
    337             <tbl:propertyfilter />
    338           </tbl:headerrow>
     319          <%
     320          int numFilters = cc.getNumPropertyFilters();
     321          int numRows = cc.getFilterRows();
     322          for (int filterNo = 0; filterNo < numRows; filterNo++)
     323          {
     324            boolean lastRow = filterNo == numRows-1;
     325            %>
     326            <tbl:headerrow>
     327              <tbl:header subclass="index" />
     328              <tbl:header
     329                subclass="check"
     330                visible="<%=mode.hasCheck()%>"
     331                ><base:icon
     332                  id="check.uncheck"
     333                  image="check_uncheck.png"
     334                  tooltip="Check/uncheck all"
     335                  visible="<%=lastRow%>"
     336                /></tbl:header>
     337              <tbl:header
     338                subclass="check"
     339                visible="<%=mode.hasRadio()%>"
     340                />
     341              <tbl:header
     342                subclass="icons"
     343                visible="<%=mode.hasIcons()%>"
     344                >
     345                <base:icon
     346                  subclass="link table-filter-row-action"
     347                  image="add.png"
     348                  tooltip="Add extra filter row"
     349                  visible="<%=lastRow%>"
     350                /><base:icon
     351                  subclass="link table-filter-row-action"
     352                  image="remove.png"
     353                  tooltip="Remove this filter row"
     354                  visible="<%=numRows > 1 || numFilters > 0 %>"
     355                  data-remove-row="<%=filterNo%>"
     356                />
     357              </tbl:header>
     358              <tbl:propertyfilter row="<%=filterNo%>" />
     359            </tbl:headerrow>
     360            <%
     361          }
     362          %>
    339363        </tbl:headers>
    340364        <tbl:rows>
  • trunk/www/admin/mimetypes/list_mimetypes.jsp

    r6604 r6706  
    120120      sc="<%=sc%>"
    121121      item="<%=itemType%>"
     122      filterrows="<%=cc.getFilterRows()%>"
    122123      subclass="fulltable"
    123124      >
     
    290291            <tbl:columnheaders />
    291292          </tbl:headerrow>
    292           <tbl:headerrow>
    293             <tbl:header subclass="index" />
    294             <tbl:header
    295               subclass="check"
    296               visible="<%=mode.hasCheck()%>"
    297               ><base:icon
    298                 id="check.uncheck"
    299                 image="check_uncheck.png"
    300                 tooltip="Check/uncheck all"
    301                  
    302               /></tbl:header>
    303             <tbl:header
    304               subclass="check"
    305               visible="<%=mode.hasRadio()%>"
    306               />
    307             <tbl:header
    308               subclass="icons"
    309               visible="<%=mode.hasIcons()%>"
    310               />
    311             <tbl:propertyfilter />
    312           </tbl:headerrow>
     293          <%
     294          int numFilters = cc.getNumPropertyFilters();
     295          int numRows = cc.getFilterRows();
     296          for (int filterNo = 0; filterNo < numRows; filterNo++)
     297          {
     298            boolean lastRow = filterNo == numRows-1;
     299            %>
     300            <tbl:headerrow>
     301              <tbl:header subclass="index" />
     302              <tbl:header
     303                subclass="check"
     304                visible="<%=mode.hasCheck()%>"
     305                ><base:icon
     306                  id="check.uncheck"
     307                  image="check_uncheck.png"
     308                  tooltip="Check/uncheck all"
     309                  visible="<%=lastRow%>"
     310                /></tbl:header>
     311              <tbl:header
     312                subclass="check"
     313                visible="<%=mode.hasRadio()%>"
     314                />
     315              <tbl:header
     316                subclass="icons"
     317                visible="<%=mode.hasIcons()%>"
     318                >
     319                <base:icon
     320                  subclass="link table-filter-row-action"
     321                  image="add.png"
     322                  tooltip="Add extra filter row"
     323                  visible="<%=lastRow%>"
     324                /><base:icon
     325                  subclass="link table-filter-row-action"
     326                  image="remove.png"
     327                  tooltip="Remove this filter row"
     328                  visible="<%=numRows > 1 || numFilters > 0 %>"
     329                  data-remove-row="<%=filterNo%>"
     330                />
     331              </tbl:header>
     332              <tbl:propertyfilter row="<%=filterNo%>" />
     333            </tbl:headerrow>
     334            <%
     335          }
     336          %>
    313337        </tbl:headers>
    314338        <tbl:rows>
  • trunk/www/admin/platforms/list_platforms.jsp

    r6604 r6706  
    123123      sc="<%=sc%>"
    124124      item="<%=itemType%>"
     125      filterrows="<%=cc.getFilterRows()%>"
    125126      subclass="fulltable"
    126127      >
     
    288289            <tbl:columnheaders />
    289290          </tbl:headerrow>
    290           <tbl:headerrow>
    291             <tbl:header subclass="index" />
    292             <tbl:header
    293               subclass="check"
    294               visible="<%=mode.hasCheck()%>"
    295               ><base:icon
    296                 id="check.uncheck"
    297                 image="check_uncheck.png"
    298                 tooltip="Check/uncheck all"
    299                  
    300               /></tbl:header>
    301             <tbl:header
    302               subclass="check"
    303               visible="<%=mode.hasRadio()%>"
    304               />
    305             <tbl:header
    306               subclass="icons"
    307               visible="<%=mode.hasIcons()%>"
    308               />
    309             <tbl:propertyfilter />
    310           </tbl:headerrow>
     291          <%
     292          int numFilters = cc.getNumPropertyFilters();
     293          int numRows = cc.getFilterRows();
     294          for (int filterNo = 0; filterNo < numRows; filterNo++)
     295          {
     296            boolean lastRow = filterNo == numRows-1;
     297            %>
     298            <tbl:headerrow>
     299              <tbl:header subclass="index" />
     300              <tbl:header
     301                subclass="check"
     302                visible="<%=mode.hasCheck()%>"
     303                ><base:icon
     304                  id="check.uncheck"
     305                  image="check_uncheck.png"
     306                  tooltip="Check/uncheck all"
     307                  visible="<%=lastRow%>"
     308                /></tbl:header>
     309              <tbl:header
     310                subclass="check"
     311                visible="<%=mode.hasRadio()%>"
     312                />
     313              <tbl:header
     314                subclass="icons"
     315                visible="<%=mode.hasIcons()%>"
     316                >
     317                <base:icon
     318                  subclass="link table-filter-row-action"
     319                  image="add.png"
     320                  tooltip="Add extra filter row"
     321                  visible="<%=lastRow%>"
     322                /><base:icon
     323                  subclass="link table-filter-row-action"
     324                  image="remove.png"
     325                  tooltip="Remove this filter row"
     326                  visible="<%=numRows > 1 || numFilters > 0 %>"
     327                  data-remove-row="<%=filterNo%>"
     328                />
     329              </tbl:header>
     330              <tbl:propertyfilter row="<%=filterNo%>" />
     331            </tbl:headerrow>
     332            <%
     333          }
     334          %>
    311335        </tbl:headers>
    312336        <tbl:rows>
  • trunk/www/admin/platforms/variants/list_variants.jsp

    r6604 r6706  
    139139      sc="<%=sc%>"
    140140      item="<%=itemType%>"
     141      filterrows="<%=cc.getFilterRows()%>"
    141142      subclass="fulltable"
    142143      >
     
    311312            <tbl:columnheaders />
    312313          </tbl:headerrow>
    313           <tbl:headerrow>
    314             <tbl:header subclass="index" />
    315             <tbl:header
    316               subclass="check"
    317               visible="<%=mode.hasCheck()%>"
    318               ><base:icon
    319                 id="check.uncheck"
    320                 image="check_uncheck.png"
    321                 tooltip="Check/uncheck all"
    322                  
    323               /></tbl:header>
    324             <tbl:header
    325               subclass="check"
    326               visible="<%=mode.hasRadio()%>"
    327               />
    328             <tbl:header
    329               subclass="icons"
    330               visible="<%=mode.hasIcons()%>"
    331               />
    332             <tbl:propertyfilter />
    333           </tbl:headerrow>
     314          <%
     315          int numFilters = cc.getNumPropertyFilters();
     316          int numRows = cc.getFilterRows();
     317          for (int filterNo = 0; filterNo < numRows; filterNo++)
     318          {
     319            boolean lastRow = filterNo == numRows-1;
     320            %>
     321            <tbl:headerrow>
     322              <tbl:header subclass="index" />
     323              <tbl:header
     324                subclass="check"
     325                visible="<%=mode.hasCheck()%>"
     326                ><base:icon
     327                  id="check.uncheck"
     328                  image="check_uncheck.png"
     329                  tooltip="Check/uncheck all"
     330                  visible="<%=lastRow%>"
     331                /></tbl:header>
     332              <tbl:header
     333                subclass="check"
     334                visible="<%=mode.hasRadio()%>"
     335                />
     336              <tbl:header
     337                subclass="icons"
     338                visible="<%=mode.hasIcons()%>"
     339                >
     340                <base:icon
     341                  subclass="link table-filter-row-action"
     342                  image="add.png"
     343                  tooltip="Add extra filter row"
     344                  visible="<%=lastRow%>"
     345                /><base:icon
     346                  subclass="link table-filter-row-action"
     347                  image="remove.png"
     348                  tooltip="Remove this filter row"
     349                  visible="<%=numRows > 1 || numFilters > 0 %>"
     350                  data-remove-row="<%=filterNo%>"
     351                />
     352              </tbl:header>
     353              <tbl:propertyfilter row="<%=filterNo%>" />
     354            </tbl:headerrow>
     355            <%
     356          }
     357          %>
    334358        </tbl:headers>
    335359        <tbl:rows>
  • trunk/www/admin/quantities/list_quantities.jsp

    r6604 r6706  
    122122      sc="<%=sc%>"
    123123      item="<%=itemType%>"
     124      filterrows="<%=cc.getFilterRows()%>"
    124125      subclass="fulltable"
    125126      >
     
    273274            <tbl:columnheaders />
    274275          </tbl:headerrow>
    275           <tbl:headerrow>
    276             <tbl:header subclass="index" />
    277             <tbl:header
    278               subclass="check"
    279               visible="<%=mode.hasCheck()%>"
    280               ><base:icon
    281                 id="check.uncheck"
    282                 image="check_uncheck.png"
    283                 tooltip="Check/uncheck all"
    284                  
    285               /></tbl:header>
    286             <tbl:header
    287               subclass="check"
    288               visible="<%=mode.hasRadio()%>"
    289               />
    290             <tbl:header
    291               subclass="icons"
    292               visible="<%=mode.hasIcons()%>"
    293               />
    294             <tbl:propertyfilter />
    295           </tbl:headerrow>
     276          <%
     277          int numFilters = cc.getNumPropertyFilters();
     278          int numRows = cc.getFilterRows();
     279          for (int filterNo = 0; filterNo < numRows; filterNo++)
     280          {
     281            boolean lastRow = filterNo == numRows-1;
     282            %>
     283            <tbl:headerrow>
     284              <tbl:header subclass="index" />
     285              <tbl:header
     286                subclass="check"
     287                visible="<%=mode.hasCheck()%>"
     288                ><base:icon
     289                  id="check.uncheck"
     290                  image="check_uncheck.png"
     291                  tooltip="Check/uncheck all"
     292                  visible="<%=lastRow%>"
     293                /></tbl:header>
     294              <tbl:header
     295                subclass="check"
     296                visible="<%=mode.hasRadio()%>"
     297                />
     298              <tbl:header
     299                subclass="icons"
     300                visible="<%=mode.hasIcons()%>"
     301                >
     302                <base:icon
     303                  subclass="link table-filter-row-action"
     304                  image="add.png"
     305                  tooltip="Add extra filter row"
     306                  visible="<%=lastRow%>"
     307                /><base:icon
     308                  subclass="link table-filter-row-action"
     309                  image="remove.png"
     310                  tooltip="Remove this filter row"
     311                  visible="<%=numRows > 1 || numFilters > 0 %>"
     312                  data-remove-row="<%=filterNo%>"
     313                />
     314              </tbl:header>
     315              <tbl:propertyfilter row="<%=filterNo%>" />
     316            </tbl:headerrow>
     317            <%
     318          }
     319          %>
    296320        </tbl:headers>
    297321        <tbl:rows>
  • trunk/www/admin/quotatypes/list_quotatypes.jsp

    r6604 r6706  
    112112      sc="<%=sc%>"
    113113      item="<%=itemType%>"
     114      filterrows="<%=cc.getFilterRows()%>"
    114115      subclass="fulltable"
    115116      >
     
    223224            <tbl:columnheaders />
    224225          </tbl:headerrow>
    225           <tbl:headerrow>
    226             <tbl:header subclass="index" />
    227             <tbl:header
    228               subclass="check"
    229               visible="<%=mode.hasCheck()%>"
    230               ><base:icon
    231                 id="check.uncheck"
    232                 image="check_uncheck.png"
    233                 tooltip="Check/uncheck all"
    234                  
    235               /></tbl:header>
    236             <tbl:header
    237               subclass="check"
    238               visible="<%=mode.hasRadio()%>"
    239               />
    240             <tbl:header
    241               subclass="icons"
    242               visible="<%=mode.hasIcons()%>"
    243               />
    244             <tbl:propertyfilter />
    245           </tbl:headerrow>
     226          <%
     227          int numFilters = cc.getNumPropertyFilters();
     228          int numRows = cc.getFilterRows();
     229          for (int filterNo = 0; filterNo < numRows; filterNo++)
     230          {
     231            boolean lastRow = filterNo == numRows-1;
     232            %>
     233            <tbl:headerrow>
     234              <tbl:header subclass="index" />
     235              <tbl:header
     236                subclass="check"
     237                visible="<%=mode.hasCheck()%>"
     238                ><base:icon
     239                  id="check.uncheck"
     240                  image="check_uncheck.png"
     241                  tooltip="Check/uncheck all"
     242                  visible="<%=lastRow%>"
     243                /></tbl:header>
     244              <tbl:header
     245                subclass="check"
     246                visible="<%=mode.hasRadio()%>"
     247                />
     248              <tbl:header
     249                subclass="icons"
     250                visible="<%=mode.hasIcons()%>"
     251                >
     252                <base:icon
     253                  subclass="link table-filter-row-action"
     254                  image="add.png"
     255                  tooltip="Add extra filter row"
     256                  visible="<%=lastRow%>"
     257                /><base:icon
     258                  subclass="link table-filter-row-action"
     259                  image="remove.png"
     260                  tooltip="Remove this filter row"
     261                  visible="<%=numRows > 1 || numFilters > 0 %>"
     262                  data-remove-row="<%=filterNo%>"
     263                />
     264              </tbl:header>
     265              <tbl:propertyfilter row="<%=filterNo%>" />
     266            </tbl:headerrow>
     267            <%
     268          }
     269          %>
    246270        </tbl:headers>
    247271        <tbl:rows>
  • trunk/www/admin/reportertypes/list_reportertypes.jsp

    r6604 r6706  
    114114      sc="<%=sc%>"
    115115      item="<%=itemType%>"
     116      filterrows="<%=cc.getFilterRows()%>"
    116117      subclass="fulltable"
    117118      >
     
    244245            <tbl:columnheaders />
    245246          </tbl:headerrow>
    246           <tbl:headerrow>
    247             <tbl:header subclass="index" />
    248             <tbl:header
    249               subclass="check"
    250               visible="<%=mode.hasCheck()%>"
    251               ><base:icon
    252                 id="check.uncheck"
    253                 image="check_uncheck.png"
    254                 tooltip="Check/uncheck all"
    255                  
    256               /></tbl:header>
    257             <tbl:header
    258               subclass="check"
    259               visible="<%=mode.hasRadio()%>"
    260               />
    261             <tbl:header
    262               subclass="icons"
    263               visible="<%=mode.hasIcons()%>"
    264               />
    265             <tbl:propertyfilter />
    266           </tbl:headerrow>
     247          <%
     248          int numFilters = cc.getNumPropertyFilters();
     249          int numRows = cc.getFilterRows();
     250          for (int filterNo = 0; filterNo < numRows; filterNo++)
     251          {
     252            boolean lastRow = filterNo == numRows-1;
     253            %>
     254            <tbl:headerrow>
     255              <tbl:header subclass="index" />
     256              <tbl:header
     257                subclass="check"
     258                visible="<%=mode.hasCheck()%>"
     259                ><base:icon
     260                  id="check.uncheck"
     261                  image="check_uncheck.png"
     262                  tooltip="Check/uncheck all"
     263                  visible="<%=lastRow%>"
     264                /></tbl:header>
     265              <tbl:header
     266                subclass="check"
     267                visible="<%=mode.hasRadio()%>"
     268                />
     269              <tbl:header
     270                subclass="icons"
     271                visible="<%=mode.hasIcons()%>"
     272                >
     273                <base:icon
     274                  subclass="link table-filter-row-action"
     275                  image="add.png"
     276                  tooltip="Add extra filter row"
     277                  visible="<%=lastRow%>"
     278                /><base:icon
     279                  subclass="link table-filter-row-action"
     280                  image="remove.png"
     281                  tooltip="Remove this filter row"
     282                  visible="<%=numRows > 1 || numFilters > 0 %>"
     283                  data-remove-row="<%=filterNo%>"
     284                />
     285              </tbl:header>
     286              <tbl:propertyfilter row="<%=filterNo%>" />
     287            </tbl:headerrow>
     288            <%
     289          }
     290          %>
    267291        </tbl:headers>
    268292        <tbl:rows>
Note: See TracChangeset for help on using the changeset viewer.