Fix #2502: Exclude empty commentary from searches.

This commit is contained in:
evazion
2017-08-05 18:32:31 -05:00
parent 40e006f7cb
commit b23f92fa10
2 changed files with 14 additions and 2 deletions

View File

@@ -5,8 +5,9 @@
<%= simple_form_for(:search, url: artist_commentaries_path, method: :get, defaults: { required: false }) 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"], include_blank: true %>
<%= f.input :translated_present, label: "Translation present?", collection: ["yes", "no"], include_blank: true %>
<%= 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>