[%# 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 %]
[% PROCESS testopia/blocks.html.tmpl %]
[% SET title = "Clone Test Case: $case.summary" %]

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

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

[% PROCESS testopia/style.none.tmpl %]
<form action="tr_show_case.cgi" method="POST">
<input type="hidden" name="case_id" value="[% case.id FILTER none %]">
<input type="hidden" name="action" value="do_clone">
<table>
<tr BGCOLOR="lightyellow">
  <td COLSPAN=2><FONT SIZE=+1>Select Clone Options</FONT></TD>
</tr>
<tr>
  <td align="left">Create a Copy
  <input type="radio" name="copymethod" value="copy" checked="checked"></td>
</tr>

<tr>
 <td>
  <table style="border: solid 1px #000;">
    <tr>
      <td align="right">Copy to Existing Plans</td>
      <td><input type="checkbox" name="existing" value="1" checked="checked"></td>
    </tr>
    <tr>
      <td align="right">Copy to Additional Plans</td>
      <td><input name="newplans"></td>
    </tr>
    <tr>
      <td/>
      <td align="left">(comma-separated list of plan IDs)</td>
    </tr>
    <tr>
      <td valign="TOP" align="RIGHT">Maintain Case Author:</td>
      <td><input type="radio" name="keepauthor" value="1" checked />Yes <input
        type="radio" name="keepauthor" value="0" />No, make me the author of the new case.</td>
    </tr>
    
    <tr>
      <td align="right">Copy Document</td>
      <td><input type="radio" name="copy_doc" value="1" checked="checked">Yes <input type="radio" name="copy_doc" value="0">No</td>
    </tr>
    <tr>
      <td align="right">Copy Attachments</td>
      <td><input type="radio" name="copy_attachments" value="1">Yes <input type="radio" name="copy_attachments" checked="checked" value="0">No</td>
    </tr>
    <tr>
      <td align="right">Copy Tags</td>
      <td><input type="radio" name="copy_tags" value="1" checked="checked">Yes <input type="radio" name="copy_tags" value="0">No</td>
    </tr>
    <tr>
      <td align="right">Copy Components</td>
      <td><input type="radio" name="copy_comps" value="1" checked="checked">Yes <input type="radio" name="copy_comps" value="0">No</td>
    </tr>
    <tr>
      <td></td>
      <td></td>
    </tr>
  </table>
 </td>
</tr>
<tr>
  <td align="left">Create a Link
  <input type="radio" name="copymethod" value="link"></td>
</tr>

<tr>
 <td>
  <table style="border: solid 1px #000;" width="100%">
    <tr>
      <td align="right">Link to Plans</td>
      <td><input name="linkplans"></td>
    </tr>
    <tr>
      <td/>
      <td align="left">(comma-separated list of plan IDs)</td>
    </tr>
  </table>
 </td>
</tr>
</table>
<input TYPE="SUBMIT" VALUE="Clone">
</form>
<p>
<A HREF="tr_show_case.cgi?case_id=[% case.id FILTER none %]">Back</A> to test case
</p>

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