blob: 98676e198efc3634058a62128d7436a917c4e3fa [file] [log] [blame]
The Android Open Source Project9364f222008-10-21 07:00:00 -07001[%# 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/
6 #
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.
11 #
12 # The Original Code is the Bugzilla Bug Tracking System.
13 #
14 # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org>
15 #%]
16
17[%# INTERFACE:
18 # products: array of hashes having the following properties:
19 # - name: string; The name of the product
20 # - description: string; The product description (html allowed)
21 # - status: boolean; Can new bugs be created for the product?
22 # - votesperuser: number; The number of votes a user is allowed
23 # in the product
24 # - maxvotersperbug: number; Maximum votes allowed per bug in this
25 # product
26 # - votestoconfirm: number; The number of votes that are needed to
27 # auto-confirm a bug in this product
28 # - bug_count: number; The number of bugs in this product
29 #
30 # classification: string; If classifications are enabled, then this is
31 # the currently selected classification
32 #%]
33
34[% PROCESS global/variables.none.tmpl %]
35
36[% IF classification %]
37 [% classification_url_part = BLOCK %]&amp;classification=
38 [%- classification FILTER url_quote %]
39 [%- END %]
40 [% classification_title = BLOCK %]
41 in classification '[% classification FILTER html %]'
42 [% END %]
43[% END %]
44
45[% PROCESS global/header.html.tmpl
46 title = "Select product $classification_title"
47%]
48
49[% edit_contentlink = BLOCK %]
50 editproducts.cgi?action=edit&amp;product=%%name%%
51 [%- classification_url_part %]
52[% END %]
53[% delete_contentlink = BLOCK %]
54 editproducts.cgi?action=del&amp;product=%%name%%
55 [%- classification_url_part %]
56[% END %]
57[% bug_count_contentlink = BLOCK %]buglist.cgi?product=%%name%%&amp;
58 [%- classification_url_part %][% END %]
59
60
61[% columns = [
62 {
63 name => "name"
64 heading => "Edit product..."
65 contentlink => edit_contentlink
66 },
67 {
68 name => "description"
69 heading => "Description"
70 allow_html_content => 1
71 },
72 {
73 name => "status"
74 heading => "Open For New $terms.Bugs"
75 yesno_field => 1
76 },
77 {
78 name => "votesperuser"
79 heading => "Votes Per User"
80 align => 'right'
81 },
82 {
83 name => "maxvotesperbug"
84 heading => "Maximum Votes Per $terms.Bug"
85 align => 'right'
86 },
87 {
88 name => "votestoconfirm"
89 heading => "Votes To Confirm"
90 align => 'right'
91 },
92 {
93 name => "bug_count"
94 heading => "$terms.Bug Count"
95 align => 'right'
96 contentlink => bug_count_contentlink
97 },
98 ]
99%]
100
101[% columns.push({
102 heading => "Action"
103 content => "Delete"
104 contentlink => delete_contentlink
105 })
106%]
107
108[% PROCESS admin/table.html.tmpl
109 columns = columns
110 data = products
111%]
112
113<p>
114
115[% PROCESS admin/products/footer.html.tmpl
116 no_edit_other_products_link = 1
117 %]
118
119[% PROCESS global/footer.html.tmpl %]