saved searches: add more order options (#4171).

This commit is contained in:
evazion
2019-09-22 23:38:48 -05:00
parent a5949a4b28
commit a164951b54
2 changed files with 12 additions and 2 deletions

View File

@@ -8,8 +8,9 @@
</h1>
<%= search_form_for(saved_searches_path) do |f| %>
<%= f.input :query_ilike, label: "Query", input_html: { value: params[:search][:query_ilike] } %>
<%= f.input :query_ilike, label: "Query", hint: "Use * for wildcard", input_html: { value: params[:search][:query_ilike] } %>
<%= f.input :label, label: "Label", input_html: { value: params[:search][:label] } %>
<%= f.input :order, collection: [%w[Newest id], %w[Query query], %w[Label label]], include_blank: false, selected: params[:search][:order] %>
<%= f.submit "Search" %>
<% end %>