autocomplete: add username autocompletion sitewide.

This commit is contained in:
evazion
2019-08-11 15:38:39 -05:00
parent cab36c307f
commit fa19047220
26 changed files with 45 additions and 46 deletions

View File

@@ -1,6 +1,6 @@
<%= simple_form_for(:search, url: bulk_update_requests_path, method: :get, defaults: { required: false }, html: { class: "inline-form" }) do |f| %>
<%= f.input :user_name, label: "Creator", input_html: { value: params[:search][:user_name] } %>
<%= f.input :approver_name, label: "Approver", input_html: { value: params[:search][:approver_name] } %>
<%= f.input :user_name, label: "Creator", input_html: { value: params[:search][:user_name], data: { autocomplete: "user" } } %>
<%= f.input :approver_name, label: "Approver", input_html: { value: params[:search][:approver_name], data: { autocomplete: "user" } } %>
<%= f.input :title_matches, label: "Title", input_html: { value: params[:search][:title_matches] } %>
<%= f.input :script_matches, label: "Script", input_html: { value: params[:search][:script_matches] } %>
<%= f.input :status, label: "Status", collection: %w[pending approved rejected], include_blank: true, selected: params[:search][:status] %>