[%# 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>
  #%]

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

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

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

[% title = "Create New Test Run Environment" %]

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

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

[% PROCESS testopia/style.none.tmpl %]
[% PROCESS testopia/blocks.html.tmpl %]
[% PROCESS testopia/messages.html.tmpl %]

<form method="POST" action="tr_new_environment.cgi" name="form1">
  <input type="hidden" name="action" value="Add" />  
[%############################################################################%]
[%# New Environment                                                          #%]
[%############################################################################%]
  <h3>New Environment</h3>
  <table border="0">
    <tr>
      <th class="bz_row_header" align="right">Name:</th>
      <td ><input name="name" size="30" /></td>
    </tr>
    <tr>
      <th class="bz_row_header" align="right">Product:</th>
      <td>[% PROCESS select sel = { 
                  name      => 'product',
                  accesskey => 'p', 
                  list      => products,
                  } %]
      </td>
    </tr>
  </table>
  
  <br />
  
  <input name="submit" type="submit" value="Create">
    <br />
    <br />
</form>
  
[%############################################################################%]
[%# Upload XML                                                               #%]
[%############################################################################%]
<form action="tr_import_environment.cgi" method="POST">
    <h3>OR Upload XML</h3>
    <input type="file" size="40" accept="text/xml" name="xml"></input>

    <br />

    <a href="testopia/doc/Manual.pdf" target="_blank">Help</a><br>
    <p>
      <input type="submit" name="submit" value="Upload">
    </p>
  </form>

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