summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/products/list.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/products/list.html.tmpl')
-rw-r--r--template/en/default/admin/products/list.html.tmpl48
1 files changed, 25 insertions, 23 deletions
diff --git a/template/en/default/admin/products/list.html.tmpl b/template/en/default/admin/products/list.html.tmpl
index 98676e198..17eb61c0d 100644
--- a/template/en/default/admin/products/list.html.tmpl
+++ b/template/en/default/admin/products/list.html.tmpl
@@ -15,19 +15,10 @@
#%]
[%# INTERFACE:
- # products: array of hashes having the following properties:
- # - name: string; The name of the product
- # - description: string; The product description (html allowed)
- # - status: boolean; Can new bugs be created for the product?
- # - votesperuser: number; The number of votes a user is allowed
- # in the product
- # - maxvotersperbug: number; Maximum votes allowed per bug in this
- # product
- # - votestoconfirm: number; The number of votes that are needed to
- # auto-confirm a bug in this product
- # - bug_count: number; The number of bugs in this product
+ # products: array of Bugzilla::Product objects
#
- # classification: string; If classifications are enabled, then this is
+ # classification: Bugzilla::Classification object; If classifications
+ # are enabled, then this is
# the currently selected classification
#%]
@@ -35,10 +26,10 @@
[% IF classification %]
[% classification_url_part = BLOCK %]&classification=
- [%- classification FILTER url_quote %]
+ [%- classification.name FILTER url_quote %]
[%- END %]
[% classification_title = BLOCK %]
- in classification '[% classification FILTER html %]'
+ in classification '[% classification.name FILTER html %]'
[% END %]
[% END %]
@@ -54,7 +45,7 @@
editproducts.cgi?action=del&product=%%name%%
[%- classification_url_part %]
[% END %]
-[% bug_count_contentlink = BLOCK %]buglist.cgi?product=%%name%%&
+[% bug_count_contentlink = BLOCK %]buglist.cgi?product=%%name%%
[%- classification_url_part %][% END %]
@@ -70,9 +61,8 @@
allow_html_content => 1
},
{
- name => "status"
+ name => "disallow_new"
heading => "Open For New $terms.Bugs"
- yesno_field => 1
},
{
name => "votesperuser"
@@ -95,15 +85,27 @@
align => 'right'
contentlink => bug_count_contentlink
},
+ {
+ heading => "Action"
+ content => "Delete"
+ contentlink => delete_contentlink
+ },
]
%]
-[% columns.push({
- heading => "Action"
- content => "Delete"
- contentlink => delete_contentlink
- })
-%]
+[% overrides.disallow_new = [ {
+ match_value => "1"
+ match_field => 'disallow_new'
+ override_content => 1
+ content => "No"
+ },
+ {
+ match_value => 0
+ match_field => 'disallow_new'
+ override_content => 1
+ content => "Yes"
+ }]
+%]
[% PROCESS admin/table.html.tmpl
columns = columns