1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org>
20
# Frédéric Buclin <LpSolit@gmail.com>
24
# showbugcounts: if defined, then bug counts should be included in the table
25
# product: object; Bugzilla::Product object representing the product to
26
# which the component belongs.
29
[% PROCESS global/variables.none.tmpl %]
31
[% title = BLOCK %]Select component of product
32
'[% product.name FILTER html %]'[% END %]
33
[% PROCESS global/header.html.tmpl
37
[% edit_contentlink = BLOCK %]editcomponents.cgi?action=edit&product=
38
[%- product.name FILTER url_quote %]&component=%%name%%[% END %]
39
[% delete_contentlink = BLOCK %]editcomponents.cgi?action=del&product=
40
[%- product.name FILTER url_quote %]&component=%%name%%[% END %]
41
[% bug_count_contentlink = BLOCK %]buglist.cgi?component=%%name%%&product=
42
[%- product.name FILTER url_quote %][% END %]
48
heading => "Edit component..."
49
contentlink => edit_contentlink
53
heading => "Description"
54
allow_html_content => 1
57
name => "initialowner"
58
heading => "Default Assignee"
63
[% IF Param('useqacontact') %]
66
name => 'initialqacontact'
67
heading => 'QA Contact'
72
[% IF showbugcounts %]
76
heading => "$terms.Bugs"
78
contentlink => bug_count_contentlink
86
contentlink => delete_contentlink
89
[%# Overrides the initialowner and the initialqacontact with right values %]
90
[% overrides.initialowner = [] %]
91
[% overrides.initialqacontact = [] %]
93
[% FOREACH component = product.components %]
94
[% overrides.initialowner.push({
95
match_value => component.name
98
content => component.default_assignee.login
101
[% overrides.initialqacontact.push({
102
match_value => component.name
103
match_field => 'name'
104
override_content => 1
105
content => component.default_qa_contact.login
110
[% PROCESS admin/table.html.tmpl
112
data = product.components
113
overrides = overrides
116
<p><a href="editcomponents.cgi?action=add&product=[% product.name FILTER url_quote %]">Add</a>
117
a new component to product '[% product.name FILTER html %]'</p>
119
[% IF ! showbugcounts %]
121
<p><a href="editcomponents.cgi?product=[% product.name FILTER url_quote %]&showbugcounts=1">
122
Redisplay table with [% terms.bug %] counts (slower)</a></p>
126
[% PROCESS admin/components/footer.html.tmpl
127
no_edit_other_components_link = 1
130
[% PROCESS global/footer.html.tmpl %]