summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
diff options
context:
space:
mode:
authorrojanu <aliustek@gmail.com>2014-04-02 10:35:08 +0200
committerByron Jones <glob@mozilla.com>2014-04-02 10:35:08 +0200
commitb4aecfefc218d425c7c2b05d0878d4b062613a18 (patch)
tree436a2784b28faaecd14f1f9db26fb63821ffb9b6 /template/en/default/search
parentb6027058e4a8e06ffc252645e5e8b695b0aa2802 (diff)
downloadbugzilla-b4aecfefc218d425c7c2b05d0878d4b062613a18.tar.gz
bugzilla-b4aecfefc218d425c7c2b05d0878d4b062613a18.tar.xz
Bug 539894: Use <optgroup/> to group products into classifications in the product drop-down on show_bug.cgi
r=glob, a=justdave
Diffstat (limited to 'template/en/default/search')
-rw-r--r--template/en/default/search/search-specific.html.tmpl29
1 files changed, 5 insertions, 24 deletions
diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl
index 4d1b4c7ef..e5d59abfb 100644
--- a/template/en/default/search/search-specific.html.tmpl
+++ b/template/en/default/search/search-specific.html.tmpl
@@ -60,30 +60,11 @@ for "crash secure SSL flash".
<label for="product">[% field_descs.product FILTER html %]:</label>
</th>
<td>
- <select name="product" id="product">
- <option value="">All</option>
- [% IF Param('useclassification') %]
- [% FOREACH c = classification %]
- <optgroup label="[% c.name FILTER html %]">
- [% FOREACH p = user.get_selectable_products(c.id) %]
- [% IF p.components.size %]
- <option value="[% p.name FILTER html %]"
- [% " selected" IF default.product.contains(p.name) %]>
- [% p.name FILTER html %]
- </option>
- [% END %]
- [% END %]
- </optgroup>
- [% END %]
- [% ELSE %]
- [% FOREACH p = product %]
- <option value="[% p.name FILTER html %]"
- [% " selected" IF default.product.contains(p.name) %]>
- [% p.name FILTER html %]
- </option>
- [% END %]
- [% END %]
- </select>
+ [% INCLUDE "global/product-select.html.tmpl"
+ id => "product"
+ name => "product"
+ add => "All"
+ %]
</td>
</tr>
<tr>