Update affected search forms

This commit is contained in:
BrokenEagle
2020-07-19 03:57:46 +00:00
parent c9ba41a58e
commit b2a2c4e140
3 changed files with 9 additions and 5 deletions

View File

@@ -3,11 +3,15 @@
<h1>Search Forum</h1>
<%= search_form_for(forum_posts_path) do |f| %>
<%= f.input :topic_title_matches, label: "Title" %>
<%= f.simple_fields_for :topic do |pf| %>
<%= pf.input :title_matches, label: "Title" %>
<% end %>
<%= f.input :body_matches, label: "Body" %>
<%= f.input :creator_name, label: "Creator", input_html: { "data-autocomplete": "user" } %>
<%= f.input :linked_to, label: "Tag", hint: "Find posts mentioning a tag", input_html: { "data-autocomplete": "tag" } %>
<%= f.input :topic_category_id, label: "Category", collection: ForumTopic::CATEGORIES.invert.to_a, include_blank: true %>
<%= f.simple_fields_for :topic do |pf| %>
<%= pf.input :category_id, label: "Category", collection: ForumTopic::CATEGORIES.invert.to_a, include_blank: true %>
<% end %>
<%= f.submit "Search" %>
<% end %>
</div>