[%# 1.0@bugzilla.org %]
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Test Runner System.
  #
  # The Initial Developer of the Original Code is Maciej Maczynski.
  # Portions created by Maciej Maczynski are Copyright (C) 2001
  # Maciej Maczynski. All Rights Reserved.
  #
  # Contributor(s): Greg Hendricks <ghendricks@novell.com>
  #%]

<h3>Filter</h3>
<form id="filter" method="GET" action="[% table.url_loc %]">
  <input type="hidden" name="plan_id" value="[% plan.id FILTER none %]" />
  <input type="hidden" name="addrun" value="[% addrun FILTER none %]" />
  <input type="hidden" name="case_status" value="CONFIRMED" />
  <table>
    <tr class="bz_row_header">
      <th>Category</th>
      <th>Priority</th>
      <th>Components</th>
      <th>Automatic</th>
    </tr>
    <tr>
      <td>
      [% PROCESS select sel = { name  => 'category_id',
                    accesskey => 't', 
                    list      => plan.product.categories,
                    elements  => 5,
                    mult      => 1 } %]   
      </td>
      <td style="padding-right: 30px;">
      [% PROCESS select sel = { name  => 'priority_id',
                    accesskey => 'p', 
                    list      => case.get_priority_list
                    elements  => 5,
                    mult      => 1 } %]
      </td>
      <td style="padding-right: 30px;">
      [% PROCESS select sel = { name  => 'component',
                    accesskey => 'm', 
                    list      => plan.product.components
                    elements  => 5,
                    mult      => 1,
                    byname    => 1 } %]
      </td>      
      <td valign="top">
      [% PROCESS select sel = { name  => 'isautomated',
                    accesskey => 'a', 
                    list      => 
                      [   { id => "0", name => "Manual" },
                          { id => "1", name => "Automatic" }  ]
                    elements  => 5,
                    mult      => 1 } %]
    </td>
    <td>
      <table>
      <tr>
        <th align="right" class="bz_row_header">Summary Contains:</th>
        <td><input type="hidden" name="summary_type" value="allwordssubstr" />
            <input name="summary"></td>
      </tr>
      <tr>
        <th align="right" class="bz_row_header">Tags:</th>
        <td><input type="hidden" name="tags_type" value="anyexact" />
            <input id="tags" name="tags"
                   autocomplete="false"
                   dojoType="combobox" 
                   dataUrl="tr_quicksearch.cgi?action=gettag&product_id=[% plan.product_id FILTER none %]&search=${searchString}" 
                   mode="remote"
                   maxListLength="10"></td>
      </tr>
      <tr>
        <th align="right" class="bz_row_header">Default Tester Contains:</th>
        <td><input type="hidden" name="default_tester_type" value="substring" />
            <input name="default_tester"></td>
      </tr>
      </table>
      </td>
      <td valign="bottom"><input type="submit" value="Filter"/></td>
    </tr>
  </table>
</form>
