/notes/search: convert to simple form.

This commit is contained in:
evazion
2017-04-21 19:42:20 -05:00
parent d8fb4399cf
commit 0ed0fb095b

View File

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