Remove uses of the is_active flag. Keep column in database (for now). The only purpose of this flag was to filter out pools from the pool list in the Add to Pool dialog. This hasn't had much use since autocomplete was added. Most pools didn't set the flag correctly anyway.
10 lines
946 B
Plaintext
10 lines
946 B
Plaintext
<%= search_form_for(path) do |f| %>
|
|
<%= f.input :name_matches, label: "Name", input_html: { value: params.dig(:search, :name_matches), "data-autocomplete": "pool" } %>
|
|
<%= f.input :description_matches, label: "Description", input_html: { value: params.dig(:search, :description_matches) } %>
|
|
<%= f.input :post_tags_match, label: "Post tags", input_html: { value: params.dig(:search, :post_tags_match), "data-autocomplete": "tag-query" } %>
|
|
<%= f.input :creator_name, label: "Creator", input_html: { value: params.dig(:search, :creator_name), "data-autocomplete": "user" } %>
|
|
<%= f.input :category, collection: %w[series collection], include_blank: true, selected: params[:search][:category] %>
|
|
<%= f.input :order, collection: [%w[Last\ updated updated_at], %w[Name name], %w[Recently\ created created_at], %w[Post\ count post_count]], include_blank: true, selected: params.dig(:search, :order) %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|