eBooru/app/views/post_flags/_search.html.erb
Earlopain cc379af5eb
[Search] Add custom input type for users
Automatically adds name/id search
2023-08-04 20:46:59 +02:00

17 lines
664 B
Plaintext

<%= form_search(path: post_flags_path) do |f| %>
<%= f.input :reason_matches, label: "Reason", hint: "Use * for wildcard searches" %>
<%= f.input :post_tags_match, label: "Tags", autocomplete: "tag-query" %>
<%= f.input :post_id, label: "Post ID" %>
<%= f.input :type, collection: [
["Flag", "flag"],
["Deletion", "deletion"],
], include_blank: true %>
<%= f.input :is_resolved, label: "Resolved?", collection: [["Yes", true], ["No", false]], include_blank: true %>
<% if CurrentUser.is_janitor? %>
<%= f.user :creator %>
<% end %>
<% if CurrentUser.is_admin? %>
<%= f.input :ip_addr, label: "Ip Address" %>
<% end %>
<% end %>