autocomplete: add username autocompletion sitewide.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<%= simple_form_for(dmail) do |f| %>
|
||||
<%= f.input :to_name, :label => "To" %>
|
||||
<%= f.input :to_name, :label => "To", :input_html => { data: { autocomplete: "user" } } %>
|
||||
<%= f.input :title, :as => :string %>
|
||||
<%= dtext_field "dmail", "body" %>
|
||||
<%= f.button :submit, "Send", :data => { :disable_with => "Sending..." } %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= f.hidden_field :folder, value: params[:folder] %>
|
||||
<%= f.input :title_matches, label: "Title", hint: "Use * for wildcard", input_html: { value: params[:search][:title_matches] } %>
|
||||
<%= f.input :message_matches, label: "Message", hint: "Use * for wildcard", input_html: { value: params[:search][:messages_matches] } %>
|
||||
<%= f.input :to_name, label: "To", input_html: { value: params[:search][:to_name] } %>
|
||||
<%= f.input :from_name, label: "From", input_html: { value: params[:search][:from_name] } %>
|
||||
<%= f.input :to_name, label: "To", input_html: { value: params[:search][:to_name], data: { autocomplete: "user" } } %>
|
||||
<%= f.input :from_name, label: "From", input_html: { value: params[:search][:from_name], data: { autocomplete: "user" } } %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user