summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-10 16:29:25 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-04-10 16:29:25 +0200
commita2689d0747d489c5d6f1b073a829df7d69357bda (patch)
tree5766084111249223f20337ecfdac5d74af777bd5 /extensions/ProductDashboard
parent13408dc745948de52f0dc6f1a3e7080a39289ab4 (diff)
downloadbugzilla-a2689d0747d489c5d6f1b073a829df7d69357bda.tar.gz
bugzilla-a2689d0747d489c5d6f1b073a829df7d69357bda.tar.xz
Backout of Bug 990982 - backport bug 539894 to bmo (Use <optgroup/> to group products into classifications in the product drop-down on show_bug.cgi)
Diffstat (limited to 'extensions/ProductDashboard')
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl14
1 files changed, 10 insertions, 4 deletions
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl
index c0c5dc6b2..ac588ac26 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl
@@ -139,10 +139,16 @@
[% END %]
<strong>Choose product:</strong>
- [% INCLUDE "global/product-select.html.tmpl"
- id => "product"
- name => "product"
- %]
+ <select name="product">
+ [% FOREACH c = classifications %]
+ <optgroup label="[% c.name FILTER html %]">
+ [% FOREACH p = c.products %]
+ <option value="[% p.name FILTER html %]"
+ [% IF p.name == product.name %]selected="selected"[% END %]>
+ [% p.name FILTER html %]</option>
+ [% END %]</optgroup>
+ [% END %]
+ </select>
<select name="bug_status" id="bug_status">
[% statuses = [ { name = 'open', label = "Open $terms.Bugs" },
{ name = 'closed', label = "Closed $terms.Bugs" },