[%# 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): Ed Fuentetaja <efuentetaja@acm.org>
  #%]

[%# INTERFACE:
  # ...
  #%]

[%############################################################################%]
[%# Template Initialization                                                  #%]
[%############################################################################%]

[% PROCESS global/variables.none.tmpl %]

[% title = "Test run report - Bugs detected" %]

[%############################################################################%]
[%# Page Header                                                              #%]
[%############################################################################%]

[% PROCESS global/header.html.tmpl
   
  title = title
  style = style
%]

[% PROCESS testopia/style.none.tmpl %]

[% PROCESS testopia/messages.html.tmpl %]

[% PROCESS testopia/navlinks.html.tmpl
   request = "BackToTestRun"
%]

<hr/>

[% PROCESS testopia/run/edit.html.tmpl 
   canmanage = 0
%]
<hr/>
<FORM METHOD=POST ACTION=tr_testrun_reports.cgi>
  <input type="hidden" name="action" value="do_bug_stats"/>
  <input type="hidden" name="run_id" value="[% run.id FILTER none %]"/>

<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0">
<TR>
  <TH ALIGN="right">Output type:</TH> 
      [% PROCESS select sel = {    name => "output",
                                   list => types
                                default => version } %]
</TR>

<TR>
  <TH ALIGN="right">[% terms.Bug %] status:</TH>  
      [% PROCESS select sel = {    name => "status",
                                   list => stats 
                                   mult => 1 } %]
</TR>

<TR>
  <TH ALIGN="right">[% terms.Bug %] resolution:</TH>  
      [% PROCESS select sel = {    name => "resolution",
                                   list => res  
                                   mult => 1 } %]
</TR>


<TR>
  <TH ALIGN="right">Who detected:</TH>  
      [% PROCESS select sel = {    name => "testers",
                                   list => testers  
                                   mult => 1 } %]
</TR>

<tr>
<TH ALIGN="right">Totals Only:</TH>
<td><INPUT TYPE=checkbox NAME="totals_only" value="1"></td>
</tr>

<tr>
<TH ALIGN="right">Links to [% terms.Bugs %]:</TH>
<td><INPUT TYPE=checkbox NAME="links_to_bugs" value="1" CHECKED></td>
</tr>

<TR>
<TD COLSPAN=2><INPUT TYPE="SUBMIT" VALUE="Continue"></TD>
</TR>

</TABLE>
</FORM>

<p>
[% PROCESS testopia/navlinks.html.tmpl
   request = "BackToTestRun"
%]
</p>

[% PROCESS global/footer.html.tmpl %]

[%############################################################################%]
[%# Block for SELECT fields                                                  #%]
[%############################################################################%]

[% BLOCK select %]
  <td align="left">
    <label for="[% sel.name %]" accesskey="[% sel.accesskey %]">
      <select name="[% sel.name %]" id="[% sel.name %]" 
      [% IF sel.mult %]
      multiple="multiple"
      size="7"
      [% END %]>
      [% FOREACH name = sel.list %]
        <option value="[% name FILTER html %]"[% " selected" IF (sel.default == name OR sel.mult) %]>
          [% name FILTER html %]</option>
      [% END %]
      </select>
    </label>
  </td>
[% END %]
