summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin
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/admin
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/admin')
-rw-r--r--template/en/default/admin/flag-type/edit.html.tmpl13
-rw-r--r--template/en/default/admin/flag-type/list.html.tmpl16
2 files changed, 14 insertions, 15 deletions
diff --git a/template/en/default/admin/flag-type/edit.html.tmpl b/template/en/default/admin/flag-type/edit.html.tmpl
index 4ee4a999c..5f45b6b76 100644
--- a/template/en/default/admin/flag-type/edit.html.tmpl
+++ b/template/en/default/admin/flag-type/edit.html.tmpl
@@ -88,12 +88,13 @@
<tr>
<th class="top left">
Product/Component:<br>
- <select name="product" onchange="selectProduct(this, this.form.component, null, null, '__Any__');">
- <option value="">__Any__</option>
- [% FOREACH prod = products %]
- <option value="[% prod.name FILTER html %]">[% prod.name FILTER html %]</option>
- [% END %]
- </select><br>
+ [% INCLUDE "global/product-select.html.tmpl"
+ id => "product"
+ name => "product"
+ add => "__Any__"
+ onchange => "selectProduct(this, this.form.component, null, null, '__Any__');"
+ products => products
+ %]<br>
<select name="component">
<option value="">__Any__</option>
[% FOREACH comp = components %]
diff --git a/template/en/default/admin/flag-type/list.html.tmpl b/template/en/default/admin/flag-type/list.html.tmpl
index 3783cade8..25b2e3390 100644
--- a/template/en/default/admin/flag-type/list.html.tmpl
+++ b/template/en/default/admin/flag-type/list.html.tmpl
@@ -39,15 +39,13 @@
<form id="flagtype_form" name="flagtype_form" action="editflagtypes.cgi" method="get">
<div class="inline">
<label for="product">Product:</label>
- <select id="product" name="product"
- onchange="selectProduct(this, this.form.component, null, null, '__Any__');">
- <option value="">__Any__</option>
- [% FOREACH prod = products %]
- <option value="[% prod.name FILTER html %]"
- [%+ 'selected="selected"' IF selected_product == prod.name %]>
- [%- prod.name FILTER html %]</option>
- [% END %]
- </select>
+ [% INCLUDE "global/product-select.html.tmpl"
+ id => "product"
+ name => "product"
+ add => "__Any__"
+ onchange => "selectProduct(this, this.form.component, null, null, '__Any__');"
+ products => products
+ %]
</div>
<div class="inline">