ai tags: add ability to order /ai_tags page by confidence.

This commit is contained in:
evazion
2022-06-25 21:28:38 -05:00
parent d3267a5ffa
commit 97ba21e615
2 changed files with 14 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
<%= f.input :post_tags_match, label: "Post Search", input_html: { value: params.dig(:search, :post_tags_match), data: { autocomplete: "tag-query" } } %>
<%= f.input :score, label: "Confidence", input_html: { value: params.dig(:search, :score) } %>
<%= f.input :is_posted, as: :hidden, input_html: { value: params.dig(:search, :is_posted) } %>
<%= f.input :order, collection: [%w[Newest media_asset_id], %w[Oldest media_asset_id_asc], %w[Confidence score_desc]], include_blank: true, selected: params[:search][:order] %>
<%= f.submit "Search" %>
<% end %>