Commit b4818910ab9d9adbd02d2f3c2e739793768a526c
1 parent
ce12728f
Exists in
staging
and in
6 other branches
Elasticsearch: Fixed view to use query
Signed-off-by: Dylan Guedes <djmgguedes@gmail.com> Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
plugins/elasticsearch/public/style.css
... | ... | @@ -13,7 +13,8 @@ |
13 | 13 | .controller-elasticsearch_plugin .search_form .search_field { |
14 | 14 | margin-top: 5px; |
15 | 15 | } |
16 | -.controller-elasticsearch_plugin .search_form .search_field #q { | |
16 | + | |
17 | +.controller-elasticsearch_plugin .search_form .search_field input[type='text'] { | |
17 | 18 | width: 500px; |
18 | 19 | } |
19 | 20 | ... | ... |
plugins/elasticsearch/views/elasticsearch_plugin/search.html.erb
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | <ul> |
8 | 8 | <% for type,value in @searchable_types %> |
9 | 9 | <li class="select-search-type <%= "active" if type == @selected_type %>"> |
10 | - <%= link_to value[:label], "?selected_type=#{type}&q=#{@query}&selected_filter_field=#{@selected_filter_field}"%> | |
10 | + <%= link_to value[:label], "?selected_type=#{type}&query=#{@query}&selected_filter_field=#{@selected_filter_field}"%> | |
11 | 11 | </li> |
12 | 12 | <% end %> |
13 | 13 | </ul> |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | <%= form_tag '/plugin/elasticsearch/search', method: :get do %> |
28 | 28 | <%= hidden_field_tag "selected_type", @selected_type %> |
29 | 29 | <%= hidden_field_tag "selected_filter_field", @selected_filter_field %> |
30 | - <%= text_field_tag :q, @query %> | |
30 | + <%= text_field_tag :query, @query %> | |
31 | 31 | <%= submit_tag _("Send") %> |
32 | 32 | <% end %> |
33 | 33 | </div> | ... | ... |