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

[% PROCESS global/header.html.tmpl
  title = "Product Builds for $plan.product.name"
%]

<table>
  <tr>
    <th class="bz_row_header" align="right">Name</th>
    <th class="bz_row_header" align="right">Milestone</th>
    <th class="bz_row_header" align="right">Description</th>
    <th class="bz_row_header" align="right">Actions</th>
  </tr>
  
[% FOREACH cat = plan.product.builds %]
<tr>
  <td valign="top">[% cat.name FILTER html %]</td>
  <td valign="top">[% cat.milestone FILTER html %]</td>
  <td valign="top">[% cat.description FILTER html %]</td>
  <td valign="top">
  <a href="tr_builds.cgi?action=edit&amp;build_id=[% cat.id FILTER none %]&amp;plan_id=[% plan.id FILTER none %]">Edit</a>
    [% IF plan.candelete %]
    &nbsp;|&nbsp;
    <a href="tr_builds.cgi?action=delete&amp;build_id=[% cat.id FILTER none %]&amp;plan_id=[% plan.id FILTER none %]">Delete</a>
    [% END %]
  </td>
</tr>
[% END %]
</table>
<br>
  [% IF plan.canedit %]
  <a href="tr_builds.cgi?action=add&amp;plan_id=[% plan.id FILTER none %]">Add new</a>
  [% END %]
<p>  
<a href="tr_show_plan.cgi?plan_id=[% plan.id FILTER none %]">Back</a> to test plan
</p>
[% PROCESS global/footer.html.tmpl %]
