uploads: add more search options for /uploads listing (#3657).

This commit is contained in:
evazion
2018-04-20 14:59:47 -05:00
parent ff4616e7b2
commit e6ce05eb29
4 changed files with 72 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
<%= simple_form_for(:search, url: uploads_path, method: :get, defaults: { required: false }, html: { class: "inline-form" }) do |f| %>
<%= f.input :uploader_name, label: "Uploader", input_html: { value: params[:search][:uploader_name] } %>
<%= f.input :post_tags_match, label: "Post Tags", input_html: { value: params[:search][:post_tags_match] } %>
<%= f.input :source_matches, label: "Source", input_html: { value: params[:search][:source_matches] } %>
<%= f.input :status, collection: [%w[Completed completed], %w[Processing processing], %w[Pending pending], %w[Duplicate *duplicate*], %w[Error error*]], include_blank: true, selected: params[:search][:status] %>
<%= f.submit "Search" %>
<% end %>

View File

@@ -1,5 +1,7 @@
<div id="c-uploads">
<div id="a-index">
<%= render "uploads/search" %>
<table width="100%" class="striped">
<thead>
<tr>