diff options
author | David Lawrence <dkl@mozilla.com> | 2014-04-07 16:42:08 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-04-07 16:42:08 +0200 |
commit | f3f8239ff36c892c0437fc8054a68e07d7ca0020 (patch) | |
tree | 3eb1e9f4ddde3f0e434927bfe285fb5ede1f8659 /template/en/default/reports | |
parent | 818b908a18de4862f060c64ad12f779ac8480f01 (diff) | |
download | bugzilla-f3f8239ff36c892c0437fc8054a68e07d7ca0020.tar.gz bugzilla-f3f8239ff36c892c0437fc8054a68e07d7ca0020.tar.xz |
Bug 990982 - backport bug 539894 to bmo (Use <optgroup/> to group products into classifications in the product drop-down on show_bug.cgi)
r=glob
Diffstat (limited to 'template/en/default/reports')
-rw-r--r-- | template/en/default/reports/duplicates.html.tmpl | 12 | ||||
-rw-r--r-- | template/en/default/reports/old-charts.html.tmpl | 11 |
2 files changed, 10 insertions, 13 deletions
diff --git a/template/en/default/reports/duplicates.html.tmpl b/template/en/default/reports/duplicates.html.tmpl index ff1c271fe..d17e1a094 100644 --- a/template/en/default/reports/duplicates.html.tmpl +++ b/template/en/default/reports/duplicates.html.tmpl @@ -82,13 +82,11 @@ </td> <td rowspan="4" valign="top">Restrict to products:</td> <td rowspan="4" valign="top"> - <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> + [% INCLUDE "global/product-select.html.tmpl" + id => "product" + name => "product" + multiple => 5 + %] </td> </tr> diff --git a/template/en/default/reports/old-charts.html.tmpl b/template/en/default/reports/old-charts.html.tmpl index 4bdc0cffa..2f50b31c6 100644 --- a/template/en/default/reports/old-charts.html.tmpl +++ b/template/en/default/reports/old-charts.html.tmpl @@ -14,7 +14,6 @@ #%] [%# 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. #%] @@ -37,11 +36,11 @@ <tr> <th>Product:</th> <td align="center"> - <select id="product" name="product"> - [% FOREACH product = products %] - <option value="[% product FILTER html %]">[% product FILTER html %]</option> - [% END %] - </select> + [% INCLUDE "global/product-select.html.tmpl" + id => "product" + name => "product" + add => "-All-" + %] </td> </tr> <tr> |