diff options
author | lpsolit%gmail.com <> | 2005-10-14 08:42:32 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-14 08:42:32 +0200 |
commit | 4587cba89586ff3e00ed863748857ecf56a41532 (patch) | |
tree | 44a8f86ab9f4a9a3e8f47426de2ce334a66ca9d7 /template/en/default/admin/classifications/reclassify.html.tmpl | |
parent | 727410cca17ff168ba4337de42782d496b9679fc (diff) | |
download | bugzilla-4587cba89586ff3e00ed863748857ecf56a41532.tar.gz bugzilla-4587cba89586ff3e00ed863748857ecf56a41532.tar.xz |
Bug 306601: Bugzilla::Classification needs a products() method - Patch by André Batosti <batosti@async.com.br> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/admin/classifications/reclassify.html.tmpl')
-rw-r--r-- | template/en/default/admin/classifications/reclassify.html.tmpl | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/template/en/default/admin/classifications/reclassify.html.tmpl b/template/en/default/admin/classifications/reclassify.html.tmpl index 3f7982bb3..127aeea87 100644 --- a/template/en/default/admin/classifications/reclassify.html.tmpl +++ b/template/en/default/admin/classifications/reclassify.html.tmpl @@ -23,19 +23,17 @@ title = "Reclassify products" %] -[% main_classification = classification %] - <form method=post action="editclassifications.cgi"> <table border=0 cellpadding=4 cellspacing=0> <tr> <td valign="top">Classification:</td> - <td valign="top" colspan=3>[% main_classification FILTER html %]</td> + <td valign="top" colspan=3>[% classification.name FILTER html %]</td> </tr><tr> <td valign="top">Description:</td> <td valign="top" colspan=3> - [% IF description %] - [% description %] + [% IF classification.description %] + [% classification.description FILTER none %] [% ELSE %] <font color="red">description missing</font> [% END %] @@ -45,16 +43,20 @@ <td valign="top">Products:</td> <td valign="top">Products</td> <td></td> - <td valign="top">[% main_classification FILTER html %] Products</td> + <td valign="top">[% classification.name FILTER html %] Products</td> </tr><tr> <td></td> <td valign="top"> <select name="prodlist" id="prodlist" multiple="multiple" size="20"> - [% FOREACH product = unselected_products %] - <option value="[% product.name FILTER html %]"> - [[% product.classification.name FILTER html %]] [% product.name FILTER html %] - </option> + [% FOREACH class = classifications %] + [% IF class.id != classification.id %] + [% FOREACH product = class.products %] + <option value="[% product.name FILTER html %]"> + [[% class.name FILTER html %]] [% product.name FILTER html %] + </option> + [% END %] + [% END %] [% END %] </select></td> @@ -65,7 +67,7 @@ <td valign="middle" rowspan=2> <select name="myprodlist" id="myprodlist" multiple="multiple" size="20"> - [% FOREACH product = selected_products %] + [% FOREACH product = classification.products %] <option value="[% product.name FILTER html %]"> [% product.name FILTER html %] </option> @@ -75,10 +77,11 @@ </table> <input type=hidden name="action" value="reclassify"> - <input type=hidden name="classification" value="[% main_classification FILTER html %]"> + <input type=hidden name="classification" value="[% classification.name FILTER html %]"> </form> <p>Back to the <a href="./">main [% terms.bugs %] page</a>, or <a href="editclassifications.cgi"> edit</a> more classifications. -[% PROCESS global/footer.html.tmpl %] +[% PROCESS global/footer.html.tmpl %] + |