post disapprovals: add username autocompletion to search form.

This commit is contained in:
evazion
2020-03-24 18:16:48 -05:00
parent 89a3c0b09d
commit 18e11f77be

View File

@@ -3,7 +3,7 @@
<h1>Disapprovals</h1>
<%= search_form_for(post_disapprovals_path) do |f| %>
<%= f.input :user_name, label: "Creator", input_html: { value: params[:search][:user_name] } %>
<%= f.input :user_name, label: "Creator", input_html: { value: params[:search][:user_name], "data-autocomplete": "user" } %>
<%= f.input :post_id, label: "Post ID", input_html: { value: params[:search][:post_id] } %>
<%= f.input :post_tags_match, label: "Tags", input_html: { value: params[:search][:post_tags_match], data: { autocomplete: "tag-query" } } %>
<%= f.input :message_matches, label: "Message", input_html: { value: params[:search][:message_matches] } %>