bugzilla-4intranet/template/en/default/admin/products/edit.html.tmpl

151 lines
4.9 KiB
Cheetah

[%# 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 Bug Tracking System.
#
# Contributor(s): Jack Nerad <jnerad@bellsouth.net>
# Tiago R. Mello <tiago@async.com.br>
# Gabriel S. Oliveira <gabriel@async.com.br>
#%]
[%# INTERFACE:
# product: Bugzilla::Product object; The product
#
# (classification fields available if classification is enabled:)
#
# classification: Bugzilla::Classification object; The classification
# the product is in
#%]
[% title = BLOCK %]Edit Product '[% product.name FILTER html %]'[% END %]
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
%]
[% group_control = {${constants.CONTROLMAPNA} => 'NA',
${constants.CONTROLMAPSHOWN} => 'Shown',
${constants.CONTROLMAPDEFAULT} => 'Default',
${constants.CONTROLMAPMANDATORY} => 'Mandatory'}
%]
<form method="post" action="editproducts.cgi">
<table border="0" cellpadding="4" cellspacing="0">
[% PROCESS "admin/products/edit-common.html.tmpl" %]
<tr>
<th align="left" valign="top">
<a href="editcomponents.cgi?product=[% product.name FILTER url_quote %]">
Edit components:
</a>
</th>
<td>
[% IF product.components.size -%]
[% FOREACH component = product.components %]
<b>[% component.name FILTER html %]:</b>&nbsp;
[% IF component.description %]
[% component.description FILTER html_light %]
[% ELSE %]
<font color="red">description missing</font>
[% END %]
<br>
[% END %]
[% ELSE %]
<font color="red">missing</font>
[% END %]
</td>
</tr>
<tr>
<th align="left" valign="top">
<a href="editversions.cgi?product=[% product.name FILTER url_quote %]">Edit versions:</a>
</th>
<td>
[%- IF product.versions.size -%]
[% FOREACH v = product.versions %]
[% v.name FILTER html %]
<br>
[% END %]
[% ELSE %]
missing
[% END %]
</td>
</tr>
[% IF Bugzilla.get_field('target_milestone').enabled %]
<tr>
<th align="left" valign="top">
<a href="editmilestones.cgi?product=[% product.name FILTER url_quote %]">
Edit milestones:</a>
</th>
<td>
[%- IF product.milestones.size -%]
[%- FOREACH m = product.milestones -%]
[% m.name FILTER html %]
<br>
[% END %]
[% ELSE %]
missing
[% END %]
</td>
</tr>
[% END %]
[% INCLUDE "admin/fieldvalues/control-list-common.html.tmpl" this_field=product.field this_value_id=product.id %]
<tr>
<th align="left" valign="top">
<a href="editproducts.cgi?action=editgroupcontrols&product=
[%- product.name FILTER url_quote %]">
Group access controls:
</a>
</th>
<td>
[% IF product.group_controls.size %]
[% FOREACH g = product.group_controls.values.sort("name") %]
<b>[% g.group.name FILTER html %]:</b>&nbsp;
[% IF g.group.isactive %]
[% group_control.${g.membercontrol} FILTER html %]/
[% group_control.${g.othercontrol} FILTER html %]
[% IF g.entry %], ENTRY[% END %]
[% IF g.canedit %], CANEDIT[% END %]
[% IF g.editcomponents %], editcomponents[% END %]
[% IF g.canconfirm %], canconfirm[% END %]
[% IF g.editbugs %], editbugs[% END %]
[% ELSE %]
DISABLED
[% END %]
<br>
[% END %]
[% ELSE %]
no groups
[% END %]
</td>
</tr>
<tr>
<th align="left">[% terms.Bugs %]:</th>
<td><a href="buglist.cgi?product=[% product.name FILTER url_quote %]">
[% product.bug_count FILTER html %]</a></td>
</tr>
</table>
<input type="hidden" name="product_old_name"
value="[% product.name FILTER html %]">
<input type="hidden" name="action" value="update">
<input type="hidden" name="token" value="[% token FILTER html %]">
<input type="submit" name="submit" value="Save Changes">
</form>
[% PROCESS "admin/products/footer.html.tmpl"
no_add_product_link = 1
no_edit_product_link = 1 %]
[% PROCESS global/footer.html.tmpl %]