summaryrefslogtreecommitdiffstats
path: root/template/en/default/search/search-advanced.html.tmpl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-11-27 06:11:16 +0100
committergerv%gerv.net <>2002-11-27 06:11:16 +0100
commitf45012516248617908cf1a5269b042fcec2b4037 (patch)
tree93a7c126d3403619da2fd46d3a7d76b516e9d6d1 /template/en/default/search/search-advanced.html.tmpl
parent738d3ec0bee8276d811704a86329f4da65268c05 (diff)
downloadbugzilla-f45012516248617908cf1a5269b042fcec2b4037.tar.gz
bugzilla-f45012516248617908cf1a5269b042fcec2b4037.tar.xz
Bug 114179 - Concentration, improvement, and templatisation of Bugzilla general user help system. Patch by gerv; r,a=justdave.
Diffstat (limited to 'template/en/default/search/search-advanced.html.tmpl')
-rw-r--r--template/en/default/search/search-advanced.html.tmpl30
1 files changed, 29 insertions, 1 deletions
diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl
index 4dd197218..6390741e3 100644
--- a/template/en/default/search/search-advanced.html.tmpl
+++ b/template/en/default/search/search-advanced.html.tmpl
@@ -27,11 +27,37 @@
[% PROCESS global/header.html.tmpl
title = "Search for bugs"
- onload = "selectProduct(document.forms['queryform']);"
+ onload = "selectProduct(document.forms['queryform']);initHelp();"
%]
[% button_name = "Search" %]
+[%# The decent help requires Javascript %]
+[% IF NOT help %]
+ <p>
+ [% IF user_agent.search("Mozilla/5") %]
+ <script> <!--
+ document.write("<a href='query.cgi?help=1'>Give me some help</a> (reloads page.)");
+ // -->
+ </script>
+ <noscript>
+ <a href="queryhelp.cgi">Give me help</a> with this form.
+ </noscript>
+ [% ELSE %]
+ <a href="queryhelp.cgi">Give me help</a> with this form.
+ [% END %]
+ </p>
+[% ELSE %]
+ <p>
+ For help, mouse over the page elements.
+ <font color="red">
+ [% IF user_agent.match("Mozilla/5") %]
+ Note that if the help popups are hidden by form element scroll bars,
+ this is a bug in your browser, not in Bugzilla.
+ [% END %]
+ </font>
+ </p>
+[% END %]
<form method="get" action="buglist.cgi" name="queryform">
[% PROCESS search/form.html.tmpl %]
@@ -48,4 +74,6 @@
</form>
+[% PROCESS "search/search-help.html.tmpl" IF help %]
+
[% PROCESS global/footer.html.tmpl %]