summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
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/bug
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/bug')
-rw-r--r--template/en/default/bug/edit.html.tmpl19
1 files changed, 14 insertions, 5 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 61fa2c1ec..ae33146a7 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -241,11 +241,20 @@
[%# PRODUCT #%]
[%#############%]
<tr>
- [% INCLUDE bug/field.html.tmpl
- bug = bug, field = bug_fields.product,
- override_legal_values = bug.choices.product
- desc_url = 'describecomponents.cgi', value = bug.product
- editable = bug.check_can_change_field('product', 0, 1) %]
+ [% PROCESS "bug/field-label.html.tmpl"
+ field = bug_fields.product
+ desc_url = 'describecomponents.cgi'
+ value = bug.product
+ %]
+ <td class="field_value" id="field_container_product">
+ [% INCLUDE "global/product-select.html.tmpl"
+ id => "product"
+ name => "product"
+ value => bug.product
+ products => bug.choices.product
+ isselect => bug.check_can_change_field('product', 0, 1)
+ %]
+ </td>
</tr>
[%# Classification is here so that it can be used in value controllers