refactored search
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<div id="c-forum-topics">
|
||||
<div id="a-search">
|
||||
<h1>Search Forum</h1>
|
||||
<%= simple_form_for @search do |f| %>
|
||||
<%= f.input :topic_title_matches, :label => "Title", :required => false %>
|
||||
<%= f.input :body_matches, :label => "Body", :required => false %>
|
||||
<%= f.button :submit, "Search" %>
|
||||
<%= form_tag(forum_topics_path, :method => :get, :class => "simple_form") do %>
|
||||
<%= search_field :topic_title_matches, :label => "Title" %>
|
||||
<%= search_field :body_matches, :label => "Body" %>
|
||||
<%= search_field :creator_name, :label => "Author" %>
|
||||
<%= submit_tag "Search" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user