From 95052864ee662a67639a3080b3ecf7a1e24ba9e3 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 24 May 2012 12:57:14 -0400 Subject: Bug 747193 - Add search field to product chooser to allow selecting product/component based on keyword search r=glob --- .../en/default/global/choose-product.html.tmpl | 48 ++++++++++++++++++---- 1 file changed, 40 insertions(+), 8 deletions(-) (limited to 'extensions/BMO/template/en/default/global') diff --git a/extensions/BMO/template/en/default/global/choose-product.html.tmpl b/extensions/BMO/template/en/default/global/choose-product.html.tmpl index 9daae1d25..159919169 100644 --- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl +++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl @@ -32,29 +32,58 @@ [% IF target == "enter_bug.cgi" %] [% title = "Enter $terms.Bug" %] [% h2 = BLOCK %]First, you must pick a product on which to enter [% terms.abug %]. [% END %] + [% yui = [ 'autocomplete' ] %] + [% javascript_urls = [ "js/field.js", "js/create_bug.js", + "extensions/BMO/web/js/choose_product.js" ] %] [% ELSIF target == "describecomponents.cgi" %] [% title = "Browse" %] [% h2 = "Please specify the product whose components you want described." %] [% END %] +[% style_urls = [ "extensions/BMO/web/styles/choose_product.css" ] %] + [% DEFAULT title = "Choose a Product" %] [% PROCESS global/header.html.tmpl %] -
+
+
-

Looking for technical support or help getting your site to work with Mozilla? Visit the mozilla.org support page before filing [% terms.bugs %].

+

+ Looking for technical support or help getting your site to work with Mozilla? + Visit the mozilla.org support page + before filing [% terms.bugs %]. +


-

[% USE Bugzilla %] [% cgi = Bugzilla.cgi %] [% SET classification = cgi.param('classification') %] [% IF NOT ((cgi.param("full")) OR (user.settings.product_chooser.value == 'full_product_chooser')) %] -[% IF target == "enter_bug.cgi" %] -

Which product is affected by the problem you would like to report?

+ +[% IF target == 'enter_bug.cgi' %] +

Which product is affected by the problem you would like to report?

+
+
+
+ Type to find product and component by name or description +
+ +
+
+
+ + +

or choose from the following selections

[% END %] + [% INCLUDE easyproduct name="Core" @@ -81,7 +110,7 @@ href="http://www.mozilla.org/support/">Visit the mozilla.org support page be icon="seamonkey.png" %] [% INCLUDE easyproduct - name="Fennec" + name="Fennec Native" icon="fennec.png" %] [% INCLUDE easyproduct @@ -158,11 +187,14 @@ href="http://www.mozilla.org/support/">Visit the mozilla.org support page be
[% IF target == "enter_bug.cgi" AND user.settings.product_chooser.value != 'full_product_chooser' %] -

You can choose to get this screen by default when you click "New [% terms.Bug %]" by changing your preferences.

+

You can choose to get this screen by default when you click "New [% terms.Bug %]" +by changing your preferences.

[% END %] [% END %]
+ + [% PROCESS global/footer.html.tmpl %] [%###########################################################################%] -- cgit v1.2.3-24-g4f1b