refactored search

This commit is contained in:
albert
2013-01-10 17:45:52 -05:00
parent 13271e9bf5
commit 8749c43b3e
85 changed files with 946 additions and 304 deletions

View File

@@ -2,11 +2,12 @@
<div id="a-search">
<h1>Search Notes</h1>
<%= simple_form_for @search do |f| %>
<%= form_tag(notes_path, :method => :get, :class => "simple_form") do %>
<%= hidden_field_tag :group_by, "note" %>
<%= f.input :body_matches, :label => "Body", :required => false %>
<%= f.input :post_tag_match, :label => "Tags", :required => false %>
<%= f.button :submit, "Search" %>
<%= search_field :body_matches, :label => "Body" %>
<%= search_field :post_tags_match, :label => "Tags" %>
<%= search_field :creator_name, :label => "Author" %>
<%= submit_tag "Search" %>
<% end %>
</div>
</div>