summaryrefslogtreecommitdiffstats
path: root/template/en/default/search/search-instant.html.tmpl
blob: 94cb619d0f25055b6767e7b9c35b2f15df18c595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[%# 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.
  #%]

[% PROCESS global/variables.none.tmpl %]

[% PROCESS global/header.html.tmpl 
  title = "Instant Search"
  javascript_urls = [ 'extensions/GuidedBugEntry/web/js/products.js',
                      'js/instant-search.js', ]
  yui = [ 'datatable', 'container' ]
%]

[% UNLESS default.exists('product') && default.product.size %]
  [% default.product = [ 'Firefox' ] %]
[% END %]

<script>
YAHOO.bugzilla.instantSearch.setLabels( {
  id: "[% field_descs.bug_id FILTER js %]",
  summary: "[% field_descs.short_desc FILTER js %]",
  component: "[% field_descs.component FILTER js %]",
  status: "[% field_descs.bug_status FILTER js %]",
});
</script>

[% WRAPPER search/tabs.html.tmpl %]

<p>
  This page provides instant results; however, only the [% terms.bug %]'s summary
  is searched.  Products related to the selected product may also be searched.
</p>

<table>
  <tr>
    <td align="right" valign="baseline">
      <b><label for="product">Product:</label></b>
    </td>
    <td>
      [% INCLUDE "global/product-select.html.tmpl"
        id    => "product"
        name  => "product"
        value => default.product.0
      %]
    </td>
  </tr>
  <tr>
    <td align="right" valign="baseline">
      <b><label for="content">Words:</label></b>
    </td>
    <td>
      <input id="content" spellcheck="true" size="60"
             value="[% default.content.0 FILTER html %]">
    </td>
  </tr>
</table>
<br>

<div id="results"></div>

[% END %]

[% PROCESS global/footer.html.tmpl %]