views: migrate search forms to use simple form.

Migrate various forms to be built using simple form instead of raw html.
Also adds autocomplete="off" to these forms (#4162).
This commit is contained in:
evazion
2019-09-10 14:29:07 -05:00
parent 1743f3797f
commit a1b48f5e3f
13 changed files with 68 additions and 177 deletions

View File

@@ -3,9 +3,9 @@
<h1>MetaSearch Tags</h1>
<section>
<%= form_tag(meta_searches_tags_path, :method => :get) do %>
<%= text_field_tag "name", params[:name], :data => { :autocomplete => "tag" } %>
<%= submit_tag "Go" %>
<%= search_form_for(meta_searches_tags_path) do |f| %>
<%= f.input :name, input_html: { value: params.dig(:search, :name), "data-autocomplete": "tag" } %>
<%= f.submit "Search" %>
<% end %>
</section>