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
676 B
Plaintext
17 lines
676 B
Plaintext
<div id="c-artist-commentaries">
|
|
<div id="a-search">
|
|
<h1>Search Artist Commentary</h1>
|
|
|
|
<%= search_form_for(artist_commentaries_path) do |f| %>
|
|
<%= f.input :text_matches, label: "Text" %>
|
|
<%= f.input :post_tags_match, label: "Tags", input_html: { data: { autocomplete: "tag-query" } } %>
|
|
<%= f.input :original_present, label: "Original present?", collection: ["yes", "no"] %>
|
|
<%= f.input :translated_present, label: "Translation present?", collection: ["yes", "no"] %>
|
|
<%= f.input :is_deleted, label: "Deleted?", collection: ["yes", "no"] %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|