diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-05 14:51:50 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-11-05 14:51:50 +0000 |
commit | 4d5c7e2caabd320fdce76f6d8d73f9e581fc03cb (patch) | |
tree | 98b1d27bffe1704a127e042d646a76505fc43950 | |
parent | fecc3f1e60d46f703421624da576da5ad36cf419 (diff) |
Use simple form for frontpage search - we don't need parameter insertion as the form is not submitted to this page, we don't need csrf protection and we don't want the extra parameters as we convert this to a get request.
-rw-r--r-- | app/views/general/_frontpage_search_box.rhtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/general/_frontpage_search_box.rhtml b/app/views/general/_frontpage_search_box.rhtml index 14ba2c8be..6e45364d2 100644 --- a/app/views/general/_frontpage_search_box.rhtml +++ b/app/views/general/_frontpage_search_box.rhtml @@ -4,9 +4,9 @@ <strong>{{number_of_authorities}} authorities</strong>", :number_of_requests => InfoRequest.visible.count, :number_of_authorities => PublicBody.visible.count) %> </h2> -<% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %> +<form id="navigation_search_form" method="post" action="/search"> <div> - <%= text_field_tag 'query', params[:query], { :size => 30 } %> - <%= submit_tag _('Search') %> + <input id="query" type="text" size="30" name="query"> + <input type="submit" value="<%= _('Search') %>"> </div> -<% end %> +</form> |