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

@@ -2,13 +2,11 @@
<div id="a-search">
<h1>Search Changes</h1>
<div id="search">
<%= form_tag(post_versions_path, :method => :get, :class => "simple_form") do %>
<%= search_field "updater_name", :label => "User", :data => { autocomplete: "user" } %>
<%= search_field "post_id", :label => "Post" %>
<%= submit_tag "Search" %>
<% end %>
</div>
<%= search_form_for(post_versions_path) do |f| %>
<%= f.input :updater_name, label: "Updater", input_html: { "data-autocomplete": "user" } %>
<%= f.input :post_id %>
<%= f.submit "Search" %>
<% end %>
</div>
</div>