summaryrefslogtreecommitdiffstats
path: root/template/en/default/request
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-07 16:42:08 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-04-07 16:42:08 +0200
commitf3f8239ff36c892c0437fc8054a68e07d7ca0020 (patch)
tree3eb1e9f4ddde3f0e434927bfe285fb5ede1f8659 /template/en/default/request
parent818b908a18de4862f060c64ad12f779ac8480f01 (diff)
downloadbugzilla-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/request')
-rw-r--r--template/en/default/request/queue.html.tmpl28
1 files changed, 6 insertions, 22 deletions
diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl
index 261db0438..9ba8cbc45 100644
--- a/template/en/default/request/queue.html.tmpl
+++ b/template/en/default/request/queue.html.tmpl
@@ -81,28 +81,12 @@ to some group are shown by default.
</td>
<th>Product:</th>
<td>
- <select name="product" onchange="selectProduct(this, this.form.component, null, null, 'Any');">
- <option value="">Any</option>
- [% IF Param('useclassification') %]
- [% FOREACH c = user.get_selectable_classifications %]
- <optgroup label="[% c.name FILTER html %]">
- [% FOREACH p = user.get_selectable_products(c.id) %]
- <option value="[% p.name FILTER html %]"
- [% " selected" IF cgi.param('product') == p.name %]>
- [% p.name FILTER html %]
- </option>
- [% END %]
- </optgroup>
- [% END %]
- [% ELSE %]
- [% FOREACH p = user.get_selectable_products %]
- <option value="[% p.name FILTER html %]"
- [% " selected" IF cgi.param('product') == p.name %]>
- [% p.name FILTER html %]
- </option>
- [% END %]
- [% END %]
- </select>
+ [% INCLUDE "global/product-select.html.tmpl"
+ id => "product"
+ name => "product"
+ add => "Any"
+ onchange => "selectProduct(this, this.form.component, null, null, 'Any');"
+ %]
</td>
<th>Flag:</th>
<td>