summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports
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 /template/en/default/reports
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 'template/en/default/reports')
-rw-r--r--template/en/default/reports/duplicates.html.tmpl12
-rw-r--r--template/en/default/reports/old-charts.html.tmpl11
2 files changed, 13 insertions, 10 deletions
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 @@
</td>
<td rowspan="4" valign="top">Restrict to products:</td>
<td rowspan="4" valign="top">
- [% INCLUDE "global/product-select.html.tmpl"
- id => "product"
- name => "product"
- multiple => 5
- %]
+ <select name="product" size="5" multiple="multiple">
+ [% FOREACH p = user.get_selectable_products %]
+ <option name="[% p.name FILTER html %]"
+ [% ' selected="selected"' IF product.contains(p.name) %]
+ >[% p.name FILTER html %]</option>
+ [% END %]
+ </select>
</td>
</tr>
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 @@
<tr>
<th>Product:</th>
<td align="center">
- [% INCLUDE "global/product-select.html.tmpl"
- id => "product"
- name => "product"
- add => "-All-"
- %]
+ <select id="product" name="product">
+ [% FOREACH product = products %]
+ <option value="[% product FILTER html %]">[% product FILTER html %]</option>
+ [% END %]
+ </select>
</td>
</tr>
<tr>