[%# 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 Testopia System
  #
  # The Initial Developer of the Original Code is Greg Hendricks.
  # Portions created by Greg Hendricks are Copyright (C) 2006 Novell.
  # All Rights Reserved.
  #
  # Contributor(s): Greg Hendricks <ghendricks@novell.com>
  #%]
  
<html>
  <head>
    <title>Test Case [% case.id FILTER html %] - [% case.summary FILTER html %]</title>
    <link href="testopia/css/print.css" rel="stylesheet" type="text/css"/>
  </head>
</html>
<h1>Test Case [% case.id FILTER html %] - [% case.summary FILTER html %]</h1>
<table>
  <tr>
    <td class="print_table_bold">Author:</td>
    <td class="print_table_body">[% case.author.identity FILTER html %]</td>
    <td class="print_table_bold">Created:</td>
    <td class="print_table_body">[% case.creation_date FILTER time %]</td>
  </tr>
  <tr>
    <td class="print_table_bold">Default Tester:</td>
    <td class="print_table_body">[% case.default_tester.identity FILTER html %]</td>
    <td class="print_table_bold">Priority:</td>
    <td class="print_table_body">[% case.priority FILTER html %]</td>
  </tr>
  <tr>
    <td class="print_table_bold">Requirement:</td>
    <td class="print_table_body">[% case.requirement FILTER html %]</td>
    <td class="print_table_bold">Case Text Version:</td>
    <td class="print_table_body">[% case.version FILTER html %]</td>
  </tr>
  <tr>
    <td class="print_table_bold">Status:</td>
    <td class="print_table_body">[% case.status FILTER html %]</td>
    <td class="print_table_bold">Category:</td>
    <td class="print_table_body">[% case.category.name FILTER html %]</td>
  </tr>
</table>
<table>
  <tr>
    <th>Components</th>
    <th>Tags</th>
  </tr>
  <tr>
    <td>
    [% FOREACH component = case.components %]
      [% component.name FILTER html %]</br>
    [% END %]
    </td>
    <td>
    [% FOREACH tag = case.tags %]
      [% tag.tag_name FILTER html %]</br>
    [% END %]
    </td>
  </tr>
</table>
<table>
  <tr>
    <th colspan="3" >[% terms.Bugs %]</th>
  </tr>
  <tr>
    <th>ID</th><th>Summary</th>
  </tr>
[% FOREACH bug = case.bugs %]
  <tr>
    <td>[% bug.bug_id FILTER bug_link(bug.bug_id) %] </td>
    <td>[% bug.short_desc FILTER html %]</td>
  </tr>
[% END %]
</table>
<hr>
<h3>Statistics</h3>
<img src="tr_case_reports.cgi?case_id=[% case.id FILTER none %]&type=status-breakdown">
<hr>
<h3>Setup</h3>
[% case.text.setup FILTER html_light %]
<h3>Action</h3>
[% case.text.action FILTER html_light %]
<h3>Expected Results</h3>
[% case.text.effect FILTER html_light %]
<h3>Breakdown</h3>
[% case.text.breakdown FILTER html_light %]
