Update affected search forms
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user