summaryrefslogtreecommitdiffstats
path: root/extensions/ProdCompSearch/template/en/default
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-30 08:06:06 +0200
committerByron Jones <glob@mozilla.com>2015-04-30 08:06:06 +0200
commitdac9873a61b108133ee00bda5b1862404712dd63 (patch)
treee54a93f442672073ce6ee48e0979580ca0e2e1e1 /extensions/ProdCompSearch/template/en/default
parent0d154533510e72467e1073c52095a1622f04f334 (diff)
downloadbugzilla-dac9873a61b108133ee00bda5b1862404712dd63.tar.gz
bugzilla-dac9873a61b108133ee00bda5b1862404712dd63.tar.xz
Bug 1151745: add ui to minimise steps required to move bugs between products
Diffstat (limited to 'extensions/ProdCompSearch/template/en/default')
-rw-r--r--extensions/ProdCompSearch/template/en/default/prodcompsearch/form.html.tmpl30
1 files changed, 18 insertions, 12 deletions
diff --git a/extensions/ProdCompSearch/template/en/default/prodcompsearch/form.html.tmpl b/extensions/ProdCompSearch/template/en/default/prodcompsearch/form.html.tmpl
index 4239a9738..39919510c 100644
--- a/extensions/ProdCompSearch/template/en/default/prodcompsearch/form.html.tmpl
+++ b/extensions/ProdCompSearch/template/en/default/prodcompsearch/form.html.tmpl
@@ -8,24 +8,28 @@
[%#
# parameters (all are optional, defaults below)
- # id : id and prefix of elements
- # script_name : .cgi to redirect to
- # max_results : maximum results displayed
- # input_label : input field label
- # auto_focus : focus the search form on page load
- # format : format parameter passed to cgi
- # cloned_bug_id : cloned_bug_id parameter
- # new_tab : open in a new tab
- # anchor_component : append #component to url
+ # id: id and prefix of elements
+ # script_name: .cgi to redirect to
+ # max_results: maximum results displayed
+ # input_label: input field label
+ # auto_focus: focus the search form on page load
+ # format: format parameter passed to cgi
+ # cloned_bug_id: cloned_bug_id parameter
+ # new_tab: open in a new tab
+ # anchor_component: append #component to url
+ # custom_select: when true don't manage menu-item selects
+ # hidden: initialise container as display:none
+ # throbber: id of the throbber element
#%]
[%
- DEFAULT id = "pcs";
+ DEFAULT id = "pcs";
DEFAULT max_results = 100;
DEFAULT script_name = "enter_bug.cgi";
+ DEFAULT throbber = id _ "-throbber";
%]
-<div class="pcs-form">
+<div class="pcs-form" [%= 'style="display:none"' IF hidden %]>
<div class="pcs-header">
[% input_label FILTER none %]&nbsp;
<img id="[% id FILTER html %]-throbber"
@@ -42,12 +46,14 @@
</span>
</div>
<input type="text" class="prod_comp_search" id="[% id FILTER html %]" size="50"
- placeholder="Search by product and component keywords"
+ placeholder="Search by product and component"
data-script_name="[% script_name FILTER html %]"
data-format="[% format FILTER html %]"
data-cloned_bug_id="[% cloned_bug_id FILTER html %]"
data-new_tab="[% new_tab ? "1" : "0" %]"
data-anchor_component="[% anchor_component ? "1" : "0" %]"
data-max_results="[% max_results FILTER html %]"
+ data-ignore-select="[% custom_select ? "1" : "0" %]"
+ data-throbber="[% throbber FILTER html %]"
[% "autofocus" IF auto_focus %]>
</div>