From a2689d0747d489c5d6f1b073a829df7d69357bda Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 10 Apr 2014 14:29:25 +0000 Subject: Backout of Bug 990982 - backport bug 539894 to bmo (Use to group products into classifications in the product drop-down on show_bug.cgi) --- template/en/default/admin/flag-type/edit.html.tmpl | 13 +++++----- template/en/default/admin/flag-type/list.html.tmpl | 15 +++++------ template/en/default/bug/edit.html.tmpl | 18 ++++---------- template/en/default/list/edit-multiple.html.tmpl | 8 +++--- template/en/default/reports/duplicates.html.tmpl | 12 +++++---- template/en/default/reports/old-charts.html.tmpl | 11 ++++---- template/en/default/request/queue.html.tmpl | 28 ++++++++++++++++----- .../en/default/search/search-instant.html.tmpl | 28 +++++++++++++++++---- .../en/default/search/search-specific.html.tmpl | 29 ++++++++++++++++++---- 9 files changed, 104 insertions(+), 58 deletions(-) (limited to 'template/en') diff --git a/template/en/default/admin/flag-type/edit.html.tmpl b/template/en/default/admin/flag-type/edit.html.tmpl index 9043db96d..69dc05bd3 100644 --- a/template/en/default/admin/flag-type/edit.html.tmpl +++ b/template/en/default/admin/flag-type/edit.html.tmpl @@ -108,13 +108,12 @@ Product/Component:
- [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - add => "__Any__" - onchange => "selectProduct(this, this.form.component, null, null, '__Any__');" - products => products - %]
+
+ + [% FOREACH prod = products %] + + [% END %] + diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 5ea34cc59..fe6b27bc7 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -303,19 +303,11 @@ [%# PRODUCT #%] [%#############%] - [% PROCESS "bug/field-label.html.tmpl" - field = bug_fields.product - desc_url = 'describecomponents.cgi' - %] - - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - value => bug.product - products => bug.choices.product - isselect => bug.check_can_change_field('product', 0, 1) - %] - + [% INCLUDE bug/field.html.tmpl + bug = bug, field = bug_fields.product, + override_legal_values = bug.choices.product + desc_url = 'describecomponents.cgi', value = bug.product + editable = bug.check_can_change_field('product', 0, 1) %] [%# Classification is here so that it can be used in value controllers diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index d560a9d57..6a3269dff 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -61,11 +61,9 @@ - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - dontchange => dontchange - %] + [% PROCESS selectmenu menuname = "product" + menuitems = products + property = "name" %] diff --git a/template/en/default/reports/duplicates.html.tmpl b/template/en/default/reports/duplicates.html.tmpl index d17e1a094..ff1c271fe 100644 --- a/template/en/default/reports/duplicates.html.tmpl +++ b/template/en/default/reports/duplicates.html.tmpl @@ -82,11 +82,13 @@ Restrict to products: - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - multiple => 5 - %] + diff --git a/template/en/default/reports/old-charts.html.tmpl b/template/en/default/reports/old-charts.html.tmpl index 2f50b31c6..4bdc0cffa 100644 --- a/template/en/default/reports/old-charts.html.tmpl +++ b/template/en/default/reports/old-charts.html.tmpl @@ -14,6 +14,7 @@ #%] [%# INTERFACE: + # products: an array of product names the user is allowed to view. # datasets: an array of hashes with available statuses and resolutions. # url_image: URL of the generated graph. #%] @@ -36,11 +37,11 @@ Product: - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - add => "-All-" - %] + diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 9ba8cbc45..261db0438 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -81,12 +81,28 @@ to some group are shown by default. Product: - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - add => "Any" - onchange => "selectProduct(this, this.form.component, null, null, 'Any');" - %] + Flag: diff --git a/template/en/default/search/search-instant.html.tmpl b/template/en/default/search/search-instant.html.tmpl index 94cb619d0..5d75d1996 100644 --- a/template/en/default/search/search-instant.html.tmpl +++ b/template/en/default/search/search-instant.html.tmpl @@ -41,11 +41,29 @@ YAHOO.bugzilla.instantSearch.setLabels( { - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - value => default.product.0 - %] + diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl index ea522a877..7e5de2c4a 100644 --- a/template/en/default/search/search-specific.html.tmpl +++ b/template/en/default/search/search-specific.html.tmpl @@ -67,11 +67,30 @@ for "crash secure SSL flash". - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - add => "All" - %] + -- cgit v1.2.3-24-g4f1b