From 4587cba89586ff3e00ed863748857ecf56a41532 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 14 Oct 2005 06:42:32 +0000 Subject: =?UTF-8?q?Bug=20306601:=20Bugzilla::Classification=20needs=20a=20?= =?UTF-8?q?products()=20method=20-=20Patch=20by=20Andr=C3=A9=20Batosti=20=20r=3DLpSolit=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/admin/classifications/del.html.tmpl | 8 +++--- .../default/admin/classifications/delete.html.tmpl | 2 +- .../default/admin/classifications/edit.html.tmpl | 19 +++++++++----- .../admin/classifications/reclassify.html.tmpl | 29 ++++++++++++---------- template/en/default/filterexceptions.pl | 12 --------- template/en/default/search/form.html.tmpl | 2 +- .../en/default/search/search-specific.html.tmpl | 6 ++--- 7 files changed, 38 insertions(+), 40 deletions(-) (limited to 'template/en') diff --git a/template/en/default/admin/classifications/del.html.tmpl b/template/en/default/admin/classifications/del.html.tmpl index 1430e093d..c32e46b4d 100644 --- a/template/en/default/admin/classifications/del.html.tmpl +++ b/template/en/default/admin/classifications/del.html.tmpl @@ -30,13 +30,13 @@ Classification: - [% classification FILTER html %] + [% classification.name FILTER html %] Description: - [% IF description %] - [% description %] + [% IF classification.description %] + [% classification.description FILTER none %] [% ELSE %] description missing [% END %] @@ -51,7 +51,7 @@
- +

Back to the main [% terms.bugs %] page diff --git a/template/en/default/admin/classifications/delete.html.tmpl b/template/en/default/admin/classifications/delete.html.tmpl index b2ec26cbb..046c1469f 100644 --- a/template/en/default/admin/classifications/delete.html.tmpl +++ b/template/en/default/admin/classifications/delete.html.tmpl @@ -23,7 +23,7 @@ title = "Classification deleted" %] -Classification [% classification FILTER html %] deleted.
+Classification [% classification.name FILTER html %] deleted.

Back to the main [% terms.bugs %] page or edit more classifications. diff --git a/template/en/default/admin/classifications/edit.html.tmpl b/template/en/default/admin/classifications/edit.html.tmpl index 65299df22..b38f4d6aa 100644 --- a/template/en/default/admin/classifications/edit.html.tmpl +++ b/template/en/default/admin/classifications/edit.html.tmpl @@ -27,18 +27,24 @@ - + - + - +
Classification:
Description: +
Edit products + + Edit products + - [% IF products AND products.size > 0 %] + [% IF classification.products.size > 0 %] - [% FOREACH product = products %] + [% FOREACH product = classification.products %]
[% product.name FILTER html %] @@ -58,7 +64,8 @@
- + 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 %] -
- + - + @@ -65,7 +67,7 @@
Classification:[% main_classification FILTER html %][% classification.name FILTER html %]
Description: - [% IF description %] - [% description %] + [% IF classification.description %] + [% classification.description FILTER none %] [% ELSE %] description missing [% END %] @@ -45,16 +43,20 @@ Products: Products [% main_classification FILTER html %] Products[% classification.name FILTER html %] Products
- +

Back to the main [% terms.bugs %] page, or edit more classifications. -[% PROCESS global/footer.html.tmpl %] +[% PROCESS global/footer.html.tmpl %] + diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index d03a772c4..e0a811a48 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -497,18 +497,6 @@ 'link_uri' ], -'admin/classifications/del.html.tmpl' => [ - 'description', -], - -'admin/classifications/edit.html.tmpl' => [ - 'description', -], - -'admin/classifications/reclassify.html.tmpl' => [ - 'description', -], - 'admin/classifications/select.html.tmpl' => [ 'cl.description', ], diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index a8905cc09..80bf0a2b9 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -43,7 +43,7 @@ var tms = new Array(); [% nclass = 0 %] [% FOREACH c = classification %] prods[[% nclass FILTER js %]] = [ - [%- FOREACH item = c.products %]'[% item FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; + [%- FOREACH item = c.products %]'[% item.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; [% nclass = nclass+1 %] [% END %] diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl index a36be340c..1ff6f17ac 100644 --- a/template/en/default/search/search-specific.html.tmpl +++ b/template/en/default/search/search-specific.html.tmpl @@ -74,9 +74,9 @@ for "crash secure SSL flash". [% FOREACH c = classification %] [% FOREACH p = c.products %] - [% END %] -- cgit v1.2.1