autocomplete: add username autocompletion sitewide.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<%= error_messages_for "user_feedback" %>
|
||||
|
||||
<%= simple_form_for(@user_feedback) do |f| %>
|
||||
<%= f.input :user_name, :label => "User" %>
|
||||
<%= f.input :user_name, :label => "User", :input_html => { data: { autocomplete: "user" } } %>
|
||||
<%= f.input :category, :collection => ["positive", "neutral", "negative"], :include_blank => false %>
|
||||
<%= dtext_field "user_feedback", "body" %>
|
||||
<%= f.button :submit, "Submit" %>
|
||||
|
||||
@@ -3,10 +3,8 @@
|
||||
<h1>Search User Feedbacks</h1>
|
||||
|
||||
<%= form_tag(user_feedbacks_path, :method => :get, :class => "simple_form") do %>
|
||||
<%= search_field "user_name", :label => "User" %>
|
||||
|
||||
<%= search_field "creator_name", :label => "Creator" %>
|
||||
|
||||
<%= search_field "user_name", :label => "User", :data => { autocomplete: "user" } %>
|
||||
<%= search_field "creator_name", :label => "Creator", :data => { autocomplete: "user" } %>
|
||||
<%= search_field "body_matches", :label => "Message" %>
|
||||
|
||||
<div class="input">
|
||||
|
||||
Reference in New Issue
Block a user