summaryrefslogtreecommitdiffstats
path: root/extensions/GuidedBugEntry/template/en/default
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-05-30 06:06:55 +0200
committerByron Jones <bjones@mozilla.com>2012-05-30 06:06:55 +0200
commit61ab486097a60756792bc031c836f0e55393295c (patch)
tree98d674d833a08d7cedafde8c2349b091163f4459 /extensions/GuidedBugEntry/template/en/default
parentce8f837dcd1ccd23cd5f63f258efd257e3de70f3 (diff)
downloadbugzilla-61ab486097a60756792bc031c836f0e55393295c.tar.gz
bugzilla-61ab486097a60756792bc031c836f0e55393295c.tar.xz
Bug 758141: add component searching to guided bug entry
Diffstat (limited to 'extensions/GuidedBugEntry/template/en/default')
-rw-r--r--extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl69
-rw-r--r--extensions/GuidedBugEntry/template/en/default/guided/products.html.tmpl28
-rw-r--r--extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl28
3 files changed, 49 insertions, 76 deletions
diff --git a/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl b/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl
index 6e511b4a6..ef00477cd 100644
--- a/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl
+++ b/extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl
@@ -1,40 +1,26 @@
-[%# ***** BEGIN LICENSE BLOCK *****
- # Version: MPL 1.1
+[%# 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/.
#
- # The contents of this file are subject to the Mozilla Public License Version
- # 1.1 (the "License"); you may not use this file except in compliance with
- # the License. You may obtain a copy of the License at
- # http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS IS" basis,
- # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- # for the specific language governing rights and limitations under the
- # License.
- #
- # The Original Code is the GuidedBugEntry Bugzilla Extension.
- #
- # The Initial Developer of the Original Code is
- # the Mozilla Foundation.
- # Portions created by the Initial Developer are Copyright (C) 2011
- # the Initial Developer. All Rights Reserved.
- #
- # Contributor(s):
- # Byron Jones <glob@mozilla.com>
- #
- # ***** END LICENSE BLOCK ***** */
- #%]
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
[% PROCESS global/variables.none.tmpl %]
+[% js_urls = [ 'extensions/GuidedBugEntry/web/js/products.js',
+ 'extensions/GuidedBugEntry/web/js/guided.js',
+ 'js/field.js', 'js/TUI.js', 'js/bug.js' ] %]
+[% js_urls.push('extensions/BMO/web/js/choose_product.js') IF BMO %]
+
+[% yui_modules = [ 'history', 'datatable', 'container' ] %]
+[% yui_modules.push('autocomplete') IF BMO %]
+
[% PROCESS global/header.html.tmpl
- title = "Enter A $terms.Bug"
- javascript_urls = [
- 'extensions/GuidedBugEntry/web/js/products.js',
- 'extensions/GuidedBugEntry/web/js/guided.js',
- 'js/field.js', 'js/TUI.js', 'js/bug.js' ]
+ title = "Enter A Bug"
+ javascript_urls = js_urls
style_urls = [ 'extensions/GuidedBugEntry/web/style/guided.css',
'js/yui/assets/skins/sam/container.css' ]
- yui = [ 'history', 'datatable', 'container' ]
+ yui = yui_modules
%]
<iframe id="yui-history-iframe" src="extensions/GuidedBugEntry/web/yui-history-iframe.txt"></iframe>
@@ -270,6 +256,29 @@ dupes.setLabels(
<h3>
None of the above; my [% terms.bug %] is in:
</h3>
+
+[% IF BMO %]
+ <div id="prod_comp_search_main">
+ <div id="prod_comp_search_autocomplete">
+ <div id="prod_comp_search_label">
+ Type to find product and component by name or description:
+ <img id="prod_comp_throbber" src="extensions/GuidedBugEntry/web/images/throbber.gif"
+ class="hidden" width="16" height="11">
+ </div>
+ <input id="prod_comp_search" type="text" size="60">
+ <div id="prod_comp_search_autocomplete_container"></div>
+ </div>
+ </div>
+ <script type="text/javascript">
+ if (typeof(YAHOO.bugzilla.prodCompSearch) !== 'undefined' && YAHOO.bugzilla.prodCompSearch != null)
+ YAHOO.bugzilla.prodCompSearch.init('prod_comp_search', 'prod_comp_search_autocomplete_container', 'guided');
+ </script>
+
+ <h3>
+ Or select a product:
+ </h3>
+[% END %]
+
[% END %]
[% BLOCK exit_block %]
diff --git a/extensions/GuidedBugEntry/template/en/default/guided/products.html.tmpl b/extensions/GuidedBugEntry/template/en/default/guided/products.html.tmpl
index c3991657f..f8a68e7c9 100644
--- a/extensions/GuidedBugEntry/template/en/default/guided/products.html.tmpl
+++ b/extensions/GuidedBugEntry/template/en/default/guided/products.html.tmpl
@@ -1,27 +1,9 @@
-[%# ***** BEGIN LICENSE BLOCK *****
- # Version: MPL 1.1
+[%# 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/.
#
- # The contents of this file are subject to the Mozilla Public License Version
- # 1.1 (the "License"); you may not use this file except in compliance with
- # the License. You may obtain a copy of the License at
- # http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS IS" basis,
- # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- # for the specific language governing rights and limitations under the
- # License.
- #
- # The Original Code is the GuidedBugEntry Bugzilla Extension.
- #
- # The Initial Developer of the Original Code is
- # the Mozilla Foundation.
- # Portions created by the Initial Developer are Copyright (C) 2011
- # the Initial Developer. All Rights Reserved.
- #
- # Contributor(s):
- # Byron Jones <glob@mozilla.com>
- #
- # ***** END LICENSE BLOCK ***** */
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
#%]
[% INCLUDE product_block
diff --git a/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl b/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
index e8697a5a1..231681085 100644
--- a/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
+++ b/extensions/GuidedBugEntry/template/en/default/pages/guided_products.js.tmpl
@@ -1,27 +1,9 @@
-[%# ***** BEGIN LICENSE BLOCK *****
- # Version: MPL 1.1
+[%# 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/.
#
- # The contents of this file are subject to the Mozilla Public License Version
- # 1.1 (the "License"); you may not use this file except in compliance with
- # the License. You may obtain a copy of the License at
- # http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS IS" basis,
- # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- # for the specific language governing rights and limitations under the
- # License.
- #
- # The Original Code is the GuidedBugEntry Bugzilla Extension.
- #
- # The Initial Developer of the Original Code is
- # the Mozilla Foundation.
- # Portions created by the Initial Developer are Copyright (C) 2011
- # the Initial Developer. All Rights Reserved.
- #
- # Contributor(s):
- # Byron Jones <glob@mozilla.com>
- #
- # ***** END LICENSE BLOCK ***** */
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
#%]
[%# this file allows us to pull in data defined in the BMO ext %]