Refactor search forms to use `search_form_for` so that we can set common options on all search forms, such as autocomplete="off" (#4162).
17 lines
518 B
Plaintext
17 lines
518 B
Plaintext
<div id="c-notes">
|
|
<div id="a-search">
|
|
<h1>Search Notes</h1>
|
|
|
|
<%= search_form_for(notes_path) do |f| %>
|
|
<%= f.hidden_field :group_by, value: "note" %>
|
|
|
|
<%= f.input :body_matches, label: "Body" %>
|
|
<%= f.input :creator_name, label: "Author", input_html: { data: { autocomplete: "user" } } %>
|
|
<%= f.input :post_tags_match, label: "Tags", input_html: { data: { autocomplete: "tag-query" } } %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|