summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-19 17:32:03 +0100
committerlpsolit%gmail.com <>2006-12-19 17:32:03 +0100
commit4aad094aa406d102927a0665b021ad820c3e6164 (patch)
treea334b699bf1c6ccd1a7dc17c5f4d89dea1f0276a /template/en
parenta32a16cafd772c918f2487423aa3317149bfff75 (diff)
downloadbugzilla-4aad094aa406d102927a0665b021ad820c3e6164.tar.gz
bugzilla-4aad094aa406d102927a0665b021ad820c3e6164.tar.xz
Bug 343635: Enabling classifications should add a tree view of classifications and products when entering a new bug - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=justdave
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/choose-classification.html.tmpl5
-rw-r--r--template/en/default/global/choose-product.html.tmpl36
2 files changed, 29 insertions, 12 deletions
diff --git a/template/en/default/global/choose-classification.html.tmpl b/template/en/default/global/choose-classification.html.tmpl
index 1ef99d4d8..7f5a5bcad 100644
--- a/template/en/default/global/choose-classification.html.tmpl
+++ b/template/en/default/global/choose-classification.html.tmpl
@@ -41,7 +41,10 @@
</th>
<td valign="top">&nbsp;Show all products</td>
- </tr>
+ </tr>
+ <tr>
+ <th colspan="2">&nbsp;</th>
+ </tr>
[% END %]
[% FOREACH class = classifications %]
diff --git a/template/en/default/global/choose-product.html.tmpl b/template/en/default/global/choose-product.html.tmpl
index 0d4a451b6..a24ca61c1 100644
--- a/template/en/default/global/choose-product.html.tmpl
+++ b/template/en/default/global/choose-product.html.tmpl
@@ -20,8 +20,9 @@
#%]
[%# INTERFACE:
- # products: array of product objects. The list of products
- # the user can enter bugs into.
+ # classifications: array of hashes, with an 'object' key representing a
+ # classification object and 'products' the list of
+ # product objects the user can enter bugs into.
# target: the script that displays this template.
# cloned_bug_id: ID of the bug being cloned.
# format: the desired format to display the target.
@@ -42,16 +43,29 @@
<table>
-[% FOREACH p = products %]
+[% FOREACH c = classifications %]
+ [% IF c.object %]
+ <tr>
+ <th colspan="2" align="left">[% c.object.name FILTER html %]:
+ [%+ c.object.description FILTER html_light %]</th>
+ </tr>
+ [% END %]
+
+ [% FOREACH p = c.products %]
+ <tr>
+ <th align="right" valign="top">
+ <a href="[% target %]?product=[% p.name FILTER url_quote -%]
+ [%- IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER url_quote %][% END -%]
+ [%- IF format %]&amp;format=[% format FILTER url_quote %][% END %]">
+ [% p.name FILTER html FILTER no_break %]</a>:&nbsp;
+ </th>
+
+ <td valign="top">[% p.description FILTER html_light %]</td>
+ </tr>
+ [% END %]
+
<tr>
- <th align="right" valign="top">
- <a href="[% target %]?product=[% p.name FILTER url_quote -%]
- [%- IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER url_quote %][% END -%]
- [%- IF format %]&amp;format=[% format FILTER url_quote %][% END %]">
- [% p.name FILTER html %]</a>:&nbsp;
- </th>
-
- <td valign="top">[% p.description FILTER html_light %]</td>
+ <th colspan="2">&nbsp;</th>
</tr>
[% END %]