[%# 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>
  #                 Greg Hendricks <ghendricks@novell.com>
  #%]

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

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

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

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

[% IF deleted %]
  [% title = "Case Deleted" %]
[% ELSE %]
  [% title = "Delete Test Case: $case.id - $case.summary" %]
[% END %]
[% PROCESS global/header.html.tmpl
   style_urls = ['testopia.css'] %] 

[% IF NOT deleted %]
You are about to permanently delete this test case with all its history. 
<br>
This test case is used in <a href="tr_list_runs.cgi?case_id=[% case.id FILTER none %]">[% runcount FILTER none %] run(s)</a>
in <a href="tr_list_plans.cgi?case_id=[% case.id FILTER none %]">[% plancount FILTER none %] plan(s)</a><br/>
[% IF bugcount %]
This case has <a href="buglist.cgi?bug_id=[% case.bug_list FILTER none %]">[% bugcount FILTER none %]&nbsp;[% terms.bugs %]</a> linked to it.<br/>
[% END %]
<span style="font-size:12pt; font-weight:bold; color:#cc0000;">Warning: This action cannot be undone</span>
<br>
<br>
<form action="tr_show_case.cgi">
  <input type="hidden" name="case_id" value="[% case.id FILTER none %]" />
  <input type="hidden" name="action" value="do_delete" />
  <input type="submit" value="Delete This Test Case" />
</form>

<a href="tr_show_case.cgi?case_id=[% case.id FILTER none %]">Go back</a>

[% ELSE %]

Test case deleted.

[% END %]

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