Changeset 6702


Ignore:
Timestamp:
Feb 2, 2015, 9:13:27 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #1912: Add more filter rows in list pages

Implemented on the array lims list pages.

Location:
trunk/www/lims
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/lims/arraybatches/list_batches.jsp

    r6695 r6702  
    150150      sc="<%=sc%>"
    151151      item="<%=itemType%>"
     152      filterrows="<%=cc.getFilterRows()%>"
    152153      subclass="fulltable"
    153154      data-inherited-annotations="true"
     
    385386            <tbl:columnheaders />
    386387          </tbl:headerrow>
    387           <tbl:headerrow>
    388             <tbl:header subclass="index" />
    389             <tbl:header
    390               subclass="check"
    391               visible="<%=mode.hasCheck()%>"
    392               ><base:icon
    393                 id="check.uncheck"
    394                 image="check_uncheck.png"
    395                 tooltip="Check/uncheck all"
    396                  
    397               /></tbl:header>
    398             <tbl:header
    399               subclass="check"
    400               visible="<%=mode.hasRadio()%>"
    401               />
    402             <tbl:header
    403               subclass="icons"
    404               visible="<%=mode.hasIcons()%>"
    405               />
    406             <tbl:propertyfilter />
    407           </tbl:headerrow>
     388          <%
     389          int numFilters = cc.getNumPropertyFilters();
     390          int numRows = cc.getFilterRows();
     391          for (int filterNo = 0; filterNo < numRows; filterNo++)
     392          {
     393            boolean lastRow = filterNo == numRows-1;
     394            %>
     395            <tbl:headerrow>
     396              <tbl:header subclass="index" />
     397              <tbl:header
     398                subclass="check"
     399                visible="<%=mode.hasCheck()%>"
     400                ><base:icon
     401                  id="check.uncheck"
     402                  image="check_uncheck.png"
     403                  tooltip="Check/uncheck all"
     404                  visible="<%=lastRow%>"
     405                /></tbl:header>
     406              <tbl:header
     407                subclass="check"
     408                visible="<%=mode.hasRadio()%>"
     409                />
     410              <tbl:header
     411                subclass="icons"
     412                visible="<%=mode.hasIcons()%>"
     413                >
     414                <base:icon
     415                  subclass="link table-filter-row-action"
     416                  image="add.png"
     417                  tooltip="Add extra filter row"
     418                  visible="<%=lastRow%>"
     419                /><base:icon
     420                  subclass="link table-filter-row-action"
     421                  image="remove.png"
     422                  tooltip="Remove this filter row"
     423                  visible="<%=numRows > 1 || numFilters > 0 %>"
     424                  data-remove-row="<%=filterNo%>"
     425                />
     426              </tbl:header>
     427              <tbl:propertyfilter row="<%=filterNo%>" />
     428            </tbl:headerrow>
     429            <%
     430          }
     431          %>
    408432        </tbl:headers>
    409433        <tbl:rows>
  • trunk/www/lims/arraydesigns/features/list_features.jsp

    r6604 r6702  
    181181      sc="<%=sc%>"
    182182      item="<%=itemType%>"
     183      filterrows="<%=cc.getFilterRows()%>"
    183184      subclass="fulltable"
    184185      >
     
    347348      <tbl:columndef
    348349        id="reporter.name"
    349         property="reporter.name"
     350        property="$rpt.name"
     351        exportproperty="reporter.name"
    350352        datatype="string"
    351353        title="[Rep] Name"
     
    357359        id="reporter.externalId"
    358360        clazz="uniquecol"
    359         property="reporter.externalId"
     361        property="$rpt.externalId"
     362        exportproperty="reporter.externalId"
    360363        datatype="string"
    361364        title="[Rep] ID"
     
    366369      <tbl:columndef
    367370        id="reporter.symbol"
    368         property="reporter.symbol"
     371        property="$rpt.symbol"
     372        exportproperty="reporter.symbol"
    369373        datatype="string"
    370374        title="[Rep] Gene symbol"
     
    375379      <tbl:columndef
    376380        id="reporter.description"
    377         property="reporter.description"
     381        property="$rpt.description"
     382        exportproperty="reporter.description"
    378383        datatype="string"
    379384        title="[Rep] Description"
     
    384389      <tbl:columndef
    385390        id="reporter.entryDate"
    386         property="reporter.entryDate"
     391        property="$rpt.entryDate"
     392        exportproperty="reporter.entryDate"
    387393        datatype="date"
    388394        title="[Rep] Registered"
     
    394400      <tbl:columndef
    395401        id="reporter.lastUpdate"
    396         property="reporter.lastUpdate"
     402        property="$rpt.lastUpdate"
     403        exportproperty="reporter.lastUpdate"
    397404        datatype="timestamp"
    398405        title="[Rep] Last update"
     
    413420      <tbl:columndef
    414421        id="reporter.reporterType"
    415         property="reporter.reporterType"
    416         sortproperty="reporter.reporterType.name"
     422        property="$rpt.reporterType"
     423        sortproperty="$rpt.reporterType.name"
    417424        exportproperty="reporter.reporterType.name:string"
    418425        datatype="int"
     
    432439          <tbl:columndef
    433440            id="<%="reporter."+name%>"
    434             property="<%="reporter."+name%>"
     441            property="<%="$rpt."+name%>"
     442            exportproperty="<%="reporter."+name%>"
    435443            datatype="<%=ep.getType().getStringValue()%>"
    436444            title="<%="[Rep] "+HTML.encodeTags(ep.getTitle())%>"
     
    541549            <tbl:columnheaders />
    542550          </tbl:headerrow>
    543           <tbl:headerrow>
    544             <tbl:header subclass="index" />
    545             <tbl:header
    546               subclass="check"
    547               visible="<%=mode.hasCheck()%>"
    548               ><base:icon
    549                 id="check.uncheck"
    550                 image="check_uncheck.png"
    551                 tooltip="Check/uncheck all"
    552                  
    553               /></tbl:header>
    554             <tbl:header
    555               subclass="check"
    556               visible="<%=mode.hasRadio()%>"
    557               />
    558             <tbl:header
    559               subclass="icons"
    560               visible="<%=mode.hasIcons()%>"
    561               />
    562             <tbl:propertyfilter />
    563           </tbl:headerrow>
     551          <%
     552          int numFilters = cc.getNumPropertyFilters();
     553          int numRows = cc.getFilterRows();
     554          for (int filterNo = 0; filterNo < numRows; filterNo++)
     555          {
     556            boolean lastRow = filterNo == numRows-1;
     557            %>
     558            <tbl:headerrow>
     559              <tbl:header subclass="index" />
     560              <tbl:header
     561                subclass="check"
     562                visible="<%=mode.hasCheck()%>"
     563                ><base:icon
     564                  id="check.uncheck"
     565                  image="check_uncheck.png"
     566                  tooltip="Check/uncheck all"
     567                  visible="<%=lastRow%>"
     568                /></tbl:header>
     569              <tbl:header
     570                subclass="check"
     571                visible="<%=mode.hasRadio()%>"
     572                />
     573              <tbl:header
     574                subclass="icons"
     575                visible="<%=mode.hasIcons()%>"
     576                >
     577                <base:icon
     578                  subclass="link table-filter-row-action"
     579                  image="add.png"
     580                  tooltip="Add extra filter row"
     581                  visible="<%=lastRow%>"
     582                /><base:icon
     583                  subclass="link table-filter-row-action"
     584                  image="remove.png"
     585                  tooltip="Remove this filter row"
     586                  visible="<%=numRows > 1 || numFilters > 0 %>"
     587                  data-remove-row="<%=filterNo%>"
     588                />
     589              </tbl:header>
     590              <tbl:propertyfilter row="<%=filterNo%>" />
     591            </tbl:headerrow>
     592            <%
     593          }
     594          %>
    564595        </tbl:headers>
    565596        <tbl:rows>
  • trunk/www/lims/arraydesigns/list_designs.jsp

    r6695 r6702  
    176176      sc="<%=sc%>"
    177177      item="<%=itemType%>"
     178      filterrows="<%=cc.getFilterRows()%>"
    178179      subclass="fulltable"
    179180      data-inherited-annotations="true"
     
    484485            <tbl:columnheaders />
    485486          </tbl:headerrow>
    486           <tbl:headerrow>
    487             <tbl:header subclass="index" />
    488             <tbl:header
    489               subclass="check"
    490               visible="<%=mode.hasCheck()%>"
    491               ><base:icon
    492                 id="check.uncheck"
    493                 image="check_uncheck.png"
    494                 tooltip="Check/uncheck all"
    495                  
    496               /></tbl:header>
    497             <tbl:header
    498               subclass="check"
    499               visible="<%=mode.hasRadio()%>"
    500               />
    501             <tbl:header
    502               subclass="icons"
    503               visible="<%=mode.hasIcons()%>"
    504               />
    505             <tbl:propertyfilter />
    506           </tbl:headerrow>
     487          <%
     488          int numFilters = cc.getNumPropertyFilters();
     489          int numRows = cc.getFilterRows();
     490          for (int filterNo = 0; filterNo < numRows; filterNo++)
     491          {
     492            boolean lastRow = filterNo == numRows-1;
     493            %>
     494            <tbl:headerrow>
     495              <tbl:header subclass="index" />
     496              <tbl:header
     497                subclass="check"
     498                visible="<%=mode.hasCheck()%>"
     499                ><base:icon
     500                  id="check.uncheck"
     501                  image="check_uncheck.png"
     502                  tooltip="Check/uncheck all"
     503                  visible="<%=lastRow%>"
     504                /></tbl:header>
     505              <tbl:header
     506                subclass="check"
     507                visible="<%=mode.hasRadio()%>"
     508                />
     509              <tbl:header
     510                subclass="icons"
     511                visible="<%=mode.hasIcons()%>"
     512                >
     513                <base:icon
     514                  subclass="link table-filter-row-action"
     515                  image="add.png"
     516                  tooltip="Add extra filter row"
     517                  visible="<%=lastRow%>"
     518                /><base:icon
     519                  subclass="link table-filter-row-action"
     520                  image="remove.png"
     521                  tooltip="Remove this filter row"
     522                  visible="<%=numRows > 1 || numFilters > 0 %>"
     523                  data-remove-row="<%=filterNo%>"
     524                />
     525              </tbl:header>
     526              <tbl:propertyfilter row="<%=filterNo%>" />
     527            </tbl:headerrow>
     528            <%
     529          }
     530          %>
    507531        </tbl:headers>
    508532        <tbl:rows>
  • trunk/www/lims/arrayslides/list_slides.jsp

    r6695 r6702  
    139139      sc="<%=sc%>"
    140140      item="<%=itemType%>"
     141      filterrows="<%=cc.getFilterRows()%>"
    141142      subclass="fulltable"
    142143      data-inherited-annotations="true"
     
    401402            <tbl:columnheaders />
    402403          </tbl:headerrow>
    403           <tbl:headerrow>
    404             <tbl:header subclass="index" />
    405             <tbl:header
    406               subclass="check"
    407               visible="<%=mode.hasCheck()%>"
    408               ><base:icon
    409                 id="check.uncheck"
    410                 image="check_uncheck.png"
    411                 tooltip="Check/uncheck all"
    412                  
    413               /></tbl:header>
    414             <tbl:header
    415               subclass="check"
    416               visible="<%=mode.hasRadio()%>"
    417               />
    418             <tbl:header
    419               subclass="icons"
    420               visible="<%=mode.hasIcons()%>"
    421               />
    422             <tbl:propertyfilter />
    423           </tbl:headerrow>
     404          <%
     405          int numFilters = cc.getNumPropertyFilters();
     406          int numRows = cc.getFilterRows();
     407          for (int filterNo = 0; filterNo < numRows; filterNo++)
     408          {
     409            boolean lastRow = filterNo == numRows-1;
     410            %>
     411            <tbl:headerrow>
     412              <tbl:header subclass="index" />
     413              <tbl:header
     414                subclass="check"
     415                visible="<%=mode.hasCheck()%>"
     416                ><base:icon
     417                  id="check.uncheck"
     418                  image="check_uncheck.png"
     419                  tooltip="Check/uncheck all"
     420                  visible="<%=lastRow%>"
     421                /></tbl:header>
     422              <tbl:header
     423                subclass="check"
     424                visible="<%=mode.hasRadio()%>"
     425                />
     426              <tbl:header
     427                subclass="icons"
     428                visible="<%=mode.hasIcons()%>"
     429                >
     430                <base:icon
     431                  subclass="link table-filter-row-action"
     432                  image="add.png"
     433                  tooltip="Add extra filter row"
     434                  visible="<%=lastRow%>"
     435                /><base:icon
     436                  subclass="link table-filter-row-action"
     437                  image="remove.png"
     438                  tooltip="Remove this filter row"
     439                  visible="<%=numRows > 1 || numFilters > 0 %>"
     440                  data-remove-row="<%=filterNo%>"
     441                />
     442              </tbl:header>
     443              <tbl:propertyfilter row="<%=filterNo%>" />
     444            </tbl:headerrow>
     445            <%
     446          }
     447          %>
    424448        </tbl:headers>
    425449        <tbl:rows>
  • trunk/www/lims/geometries/list_geometries.jsp

    r6604 r6702  
    124124      sc="<%=sc%>"
    125125      item="<%=itemType%>"
     126      filterrows="<%=cc.getFilterRows()%>"
    126127      subclass="fulltable"
    127128      >
     
    278279            <tbl:columnheaders />
    279280          </tbl:headerrow>
    280           <tbl:headerrow>
    281             <tbl:header subclass="index" />
    282             <tbl:header
    283               subclass="check"
    284               visible="<%=mode.hasCheck()%>"
    285               ><base:icon
    286                 id="check.uncheck"
    287                 image="check_uncheck.png"
    288                 tooltip="Check/uncheck all"
    289                  
    290               /></tbl:header>
    291             <tbl:header
    292               subclass="check"
    293               visible="<%=mode.hasRadio()%>"
    294               />
    295             <tbl:header
    296               subclass="icons"
    297               visible="<%=mode.hasIcons()%>"
    298               />
    299             <tbl:propertyfilter />
    300           </tbl:headerrow>
     281          <%
     282          int numFilters = cc.getNumPropertyFilters();
     283          int numRows = cc.getFilterRows();
     284          for (int filterNo = 0; filterNo < numRows; filterNo++)
     285          {
     286            boolean lastRow = filterNo == numRows-1;
     287            %>
     288            <tbl:headerrow>
     289              <tbl:header subclass="index" />
     290              <tbl:header
     291                subclass="check"
     292                visible="<%=mode.hasCheck()%>"
     293                ><base:icon
     294                  id="check.uncheck"
     295                  image="check_uncheck.png"
     296                  tooltip="Check/uncheck all"
     297                  visible="<%=lastRow%>"
     298                /></tbl:header>
     299              <tbl:header
     300                subclass="check"
     301                visible="<%=mode.hasRadio()%>"
     302                />
     303              <tbl:header
     304                subclass="icons"
     305                visible="<%=mode.hasIcons()%>"
     306                >
     307                <base:icon
     308                  subclass="link table-filter-row-action"
     309                  image="add.png"
     310                  tooltip="Add extra filter row"
     311                  visible="<%=lastRow%>"
     312                /><base:icon
     313                  subclass="link table-filter-row-action"
     314                  image="remove.png"
     315                  tooltip="Remove this filter row"
     316                  visible="<%=numRows > 1 || numFilters > 0 %>"
     317                  data-remove-row="<%=filterNo%>"
     318                />
     319              </tbl:header>
     320              <tbl:propertyfilter row="<%=filterNo%>" />
     321            </tbl:headerrow>
     322            <%
     323          }
     324          %>
    301325        </tbl:headers>
    302326        <tbl:rows>
  • trunk/www/lims/platemappings/list_mappings.jsp

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

    r6604 r6702  
    132132      sc="<%=sc%>"
    133133      item="<%=itemType%>"
     134      filterrows="<%=cc.getFilterRows()%>"
    134135      subclass="fulltable"
    135136      >
     
    308309            <tbl:columnheaders />
    309310          </tbl:headerrow>
    310           <tbl:headerrow>
    311             <tbl:header subclass="index" />
    312             <tbl:header
    313               subclass="check"
    314               visible="<%=mode.hasCheck()%>"
    315               ><base:icon
    316                 id="check.uncheck"
    317                 image="check_uncheck.png"
    318                 tooltip="Check/uncheck all"
    319                  
    320               /></tbl:header>
    321             <tbl:header
    322               subclass="check"
    323               visible="<%=mode.hasRadio()%>"
    324               />
    325             <tbl:header
    326               subclass="icons"
    327               visible="<%=mode.hasIcons()%>"
    328               />
    329             <tbl:propertyfilter />
    330           </tbl:headerrow>
     311          <%
     312          int numFilters = cc.getNumPropertyFilters();
     313          int numRows = cc.getFilterRows();
     314          for (int filterNo = 0; filterNo < numRows; filterNo++)
     315          {
     316            boolean lastRow = filterNo == numRows-1;
     317            %>
     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                  visible="<%=lastRow%>"
     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                <base:icon
     338                  subclass="link table-filter-row-action"
     339                  image="add.png"
     340                  tooltip="Add extra filter row"
     341                  visible="<%=lastRow%>"
     342                /><base:icon
     343                  subclass="link table-filter-row-action"
     344                  image="remove.png"
     345                  tooltip="Remove this filter row"
     346                  visible="<%=numRows > 1 || numFilters > 0 %>"
     347                  data-remove-row="<%=filterNo%>"
     348                />
     349              </tbl:header>
     350              <tbl:propertyfilter row="<%=filterNo%>" />
     351            </tbl:headerrow>
     352            <%
     353          }
     354          %>
    331355        </tbl:headers>
    332356        <tbl:rows>
  • trunk/www/lims/plates/list_plates.jsp

    r6604 r6702  
    157157      sc="<%=sc%>"
    158158      item="<%=itemType%>"
     159      filterrows="<%=cc.getFilterRows()%>"
    159160      subclass="fulltable"
    160161      >
     
    421422            <tbl:columnheaders />
    422423          </tbl:headerrow>
    423           <tbl:headerrow>
    424             <tbl:header subclass="index" />
    425             <tbl:header
    426               subclass="check"
    427               visible="<%=mode.hasCheck()%>"
    428               ><base:icon
    429                 id="check.uncheck"
    430                 image="check_uncheck.png"
    431                 tooltip="Check/uncheck all"
    432                  
    433               /></tbl:header>
    434             <tbl:header
    435               subclass="check"
    436               visible="<%=mode.hasRadio()%>"
    437               />
    438             <tbl:header
    439               subclass="icons"
    440               visible="<%=mode.hasIcons()%>"
    441               />
    442             <tbl:propertyfilter />
    443           </tbl:headerrow>
     424          <%
     425          int numFilters = cc.getNumPropertyFilters();
     426          int numRows = cc.getFilterRows();
     427          for (int filterNo = 0; filterNo < numRows; filterNo++)
     428          {
     429            boolean lastRow = filterNo == numRows-1;
     430            %>
     431            <tbl:headerrow>
     432              <tbl:header subclass="index" />
     433              <tbl:header
     434                subclass="check"
     435                visible="<%=mode.hasCheck()%>"
     436                ><base:icon
     437                  id="check.uncheck"
     438                  image="check_uncheck.png"
     439                  tooltip="Check/uncheck all"
     440                  visible="<%=lastRow%>"
     441                /></tbl:header>
     442              <tbl:header
     443                subclass="check"
     444                visible="<%=mode.hasRadio()%>"
     445                />
     446              <tbl:header
     447                subclass="icons"
     448                visible="<%=mode.hasIcons()%>"
     449                >
     450                <base:icon
     451                  subclass="link table-filter-row-action"
     452                  image="add.png"
     453                  tooltip="Add extra filter row"
     454                  visible="<%=lastRow%>"
     455                /><base:icon
     456                  subclass="link table-filter-row-action"
     457                  image="remove.png"
     458                  tooltip="Remove this filter row"
     459                  visible="<%=numRows > 1 || numFilters > 0 %>"
     460                  data-remove-row="<%=filterNo%>"
     461                />
     462              </tbl:header>
     463              <tbl:propertyfilter row="<%=filterNo%>" />
     464            </tbl:headerrow>
     465            <%
     466          }
     467          %>
    444468        </tbl:headers>
    445469        <tbl:rows>
  • trunk/www/lims/plates/wells/list_wells.jsp

    r6604 r6702  
    179179      sc="<%=sc%>"
    180180      item="<%=itemType%>"
     181      filterrows="<%=cc.getFilterRows()%>"
    181182      subclass="fulltable"
    182183      >
     
    243244      <tbl:columndef
    244245        id="reporter.name"
    245         property="reporter.name"
     246        property="$rpt.name"
     247        exportproperty="reporter.name"
    246248        datatype="string"
    247249        title="[Rep] Name"
     
    253255        id="reporter.externalId"
    254256        clazz="uniquecol"
    255         property="reporter.externalId"
     257        property="$rpt.externalId"
     258        exportproperty="reporter.externalId"
    256259        datatype="string"
    257260        title="[Rep] ID"
     
    262265      <tbl:columndef
    263266        id="reporter.symbol"
    264         property="reporter.symbol"
     267        property="$rpt.symbol"
     268        exportproperty="reporter.symbol"
    265269        datatype="string"
    266270        title="[Rep] Gene symbol"
     
    271275      <tbl:columndef
    272276        id="reporter.description"
    273         property="reporter.description"
     277        property="$rpt.description"
     278        exportproperty="reporter.description"
    274279        datatype="string"
    275280        title="[Rep] Description"
     
    280285      <tbl:columndef
    281286        id="reporter.entryDate"
    282         property="reporter.entryDate"
     287        property="$rpt.entryDate"
     288        exportproperty="reporter.entryDate"
    283289        datatype="date"
    284290        title="[Rep] Registered"
     
    290296      <tbl:columndef
    291297        id="reporter.lastUpdate"
    292         property="reporter.lastUpdate"
     298        property="$rpt.lastUpdate"
     299        exportproperty="reporter.lastUpdate"
    293300        datatype="timestamp"
    294301        title="[Rep] Last update"
     
    309316      <tbl:columndef
    310317        id="reporter.reporterType"
    311         property="reporter.reporterType"
    312         sortproperty="reporter.reporterType.name"
     318        property="$rpt.reporterType"
     319        sortproperty="$rpt.reporterType.name"
    313320        exportproperty="reporter.reporterType.name:string"
    314321        datatype="int"
     
    328335          <tbl:columndef
    329336            id="<%="reporter."+name%>"
    330             property="<%="reporter."+name%>"
     337            property="<%="$rpt."+name%>"
     338            exportproperty="<%="reporter."+name%>"
    331339            datatype="<%=ep.getType().getStringValue()%>"
    332340            title="<%="[Rep] "+HTML.encodeTags(ep.getTitle())%>"
     
    444452            <tbl:columnheaders />
    445453          </tbl:headerrow>
    446           <tbl:headerrow>
    447             <tbl:header subclass="index" />
    448             <tbl:header
    449               subclass="check"
    450               visible="<%=mode.hasCheck()%>"
    451               ><base:icon
    452                 id="check.uncheck"
    453                 image="check_uncheck.png"
    454                 tooltip="Check/uncheck all"
    455                  
    456               /></tbl:header>
    457             <tbl:header
    458               subclass="check"
    459               visible="<%=mode.hasRadio()%>"
    460               />
    461             <tbl:header
    462               subclass="icons"
    463               visible="<%=mode.hasIcons()%>"
    464               />
    465             <tbl:propertyfilter />
    466           </tbl:headerrow>
     454          <%
     455          int numFilters = cc.getNumPropertyFilters();
     456          int numRows = cc.getFilterRows();
     457          for (int filterNo = 0; filterNo < numRows; filterNo++)
     458          {
     459            boolean lastRow = filterNo == numRows-1;
     460            %>
     461            <tbl:headerrow>
     462              <tbl:header subclass="index" />
     463              <tbl:header
     464                subclass="check"
     465                visible="<%=mode.hasCheck()%>"
     466                ><base:icon
     467                  id="check.uncheck"
     468                  image="check_uncheck.png"
     469                  tooltip="Check/uncheck all"
     470                  visible="<%=lastRow%>"
     471                /></tbl:header>
     472              <tbl:header
     473                subclass="check"
     474                visible="<%=mode.hasRadio()%>"
     475                />
     476              <tbl:header
     477                subclass="icons"
     478                visible="<%=mode.hasIcons()%>"
     479                >
     480                <base:icon
     481                  subclass="link table-filter-row-action"
     482                  image="add.png"
     483                  tooltip="Add extra filter row"
     484                  visible="<%=lastRow%>"
     485                /><base:icon
     486                  subclass="link table-filter-row-action"
     487                  image="remove.png"
     488                  tooltip="Remove this filter row"
     489                  visible="<%=numRows > 1 || numFilters > 0 %>"
     490                  data-remove-row="<%=filterNo%>"
     491                />
     492              </tbl:header>
     493              <tbl:propertyfilter row="<%=filterNo%>" />
     494            </tbl:headerrow>
     495            <%
     496          }
     497          %>
    467498        </tbl:headers>
    468499        <tbl:rows>
  • trunk/www/lims/platetypes/eventtypes/list_eventtypes.jsp

    r6604 r6702  
    123123      sc="<%=sc%>"
    124124      item="<%=itemType%>"
     125      filterrows="<%=cc.getFilterRows()%>"
    125126      subclass="fulltable"
    126127      >
     
    260261            <tbl:columnheaders />
    261262          </tbl:headerrow>
    262           <tbl:headerrow>
    263             <tbl:header subclass="index" />
    264             <tbl:header
    265               subclass="check"
    266               visible="<%=mode.hasCheck()%>"
    267               ><base:icon
    268                 id="check.uncheck"
    269                 image="check_uncheck.png"
    270                 tooltip="Check/uncheck all"
    271                  
    272               /></tbl:header>
    273             <tbl:header
    274               subclass="check"
    275               visible="<%=mode.hasRadio()%>"
    276               />
    277             <tbl:header
    278               subclass="icons"
    279               visible="<%=mode.hasIcons()%>"
    280               />
    281             <tbl:propertyfilter />
    282           </tbl:headerrow>
     263          <%
     264          int numFilters = cc.getNumPropertyFilters();
     265          int numRows = cc.getFilterRows();
     266          for (int filterNo = 0; filterNo < numRows; filterNo++)
     267          {
     268            boolean lastRow = filterNo == numRows-1;
     269            %>
     270            <tbl:headerrow>
     271              <tbl:header subclass="index" />
     272              <tbl:header
     273                subclass="check"
     274                visible="<%=mode.hasCheck()%>"
     275                ><base:icon
     276                  id="check.uncheck"
     277                  image="check_uncheck.png"
     278                  tooltip="Check/uncheck all"
     279                  visible="<%=lastRow%>"
     280                /></tbl:header>
     281              <tbl:header
     282                subclass="check"
     283                visible="<%=mode.hasRadio()%>"
     284                />
     285              <tbl:header
     286                subclass="icons"
     287                visible="<%=mode.hasIcons()%>"
     288                >
     289                <base:icon
     290                  subclass="link table-filter-row-action"
     291                  image="add.png"
     292                  tooltip="Add extra filter row"
     293                  visible="<%=lastRow%>"
     294                /><base:icon
     295                  subclass="link table-filter-row-action"
     296                  image="remove.png"
     297                  tooltip="Remove this filter row"
     298                  visible="<%=numRows > 1 || numFilters > 0 %>"
     299                  data-remove-row="<%=filterNo%>"
     300                />
     301              </tbl:header>
     302              <tbl:propertyfilter row="<%=filterNo%>" />
     303            </tbl:headerrow>
     304            <%
     305          }
     306          %>
    283307        </tbl:headers>
    284308        <tbl:rows>
  • trunk/www/lims/platetypes/list_platetypes.jsp

    r6604 r6702  
    132132      sc="<%=sc%>"
    133133      item="<%=itemType%>"
     134      filterrows="<%=cc.getFilterRows()%>"
    134135      subclass="fulltable"
    135136      >
     
    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>
Note: See TracChangeset for help on using the changeset viewer.