From c696b87beabb93c1d929410b6a51d097aa76c812 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 25 Jun 2012 08:05:28 -0400 Subject: Bug 766908 - Show the "fileit" textfield when creating a bug in the full chooser with all product r=glob --- .../en/default/global/choose-product.html.tmpl | 37 ++++++++-------------- .../en/default/global/prod-comp-search.html.tmpl | 27 ++++++++++++++++ 2 files changed, 41 insertions(+), 23 deletions(-) create mode 100644 extensions/BMO/template/en/default/global/prod-comp-search.html.tmpl (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 9dd2787c3..c72d72229 100644 --- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl +++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl @@ -29,20 +29,21 @@ [% PROCESS global/variables.none.tmpl %] +[% style_urls = [ "extensions/BMO/web/styles/choose_product.css" ] %] + [% 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" ] %] + "extensions/BMO/web/js/prod_comp_search.js" ] %] [% onload = "YAHOO.util.Dom.get('prod_comp_search').focus();" %] + [% style_urls.push("extensions/BMO/web/styles/prod_comp_search.css") %] [% 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 %] @@ -64,27 +65,10 @@ [% 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: - -
- -
-
-
- - +[% PROCESS "global/prod-comp-search.html.tmpl" %]

or choose from the following selections

+[% ELSE %] +

[% h2 FILTER html %]

[% END %] @@ -144,7 +128,14 @@
[% ELSE %] + +[% IF target == 'enter_bug.cgi' %] +

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

+[% PROCESS "global/prod-comp-search.html.tmpl" %] +

or choose from the following selections

+[% ELSE %]

[% h2 FILTER html %]

+[% END %] diff --git a/extensions/BMO/template/en/default/global/prod-comp-search.html.tmpl b/extensions/BMO/template/en/default/global/prod-comp-search.html.tmpl new file mode 100644 index 000000000..8c120e9af --- /dev/null +++ b/extensions/BMO/template/en/default/global/prod-comp-search.html.tmpl @@ -0,0 +1,27 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +
+
+
+ Type to find product and component by name or description: + +
+ +
+
+
+ -- cgit v1.2.3-24-g4f1b