views: refactor quick search forms.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
<%= form_tag(notes_path, :method => :get) do %>
|
||||
<%= hidden_field_tag "group_by", "note" %>
|
||||
<%= text_field "search", "body_matches", :id => "quick_search_body_matches", :placeholder => "Search notes" %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= render "notes/quick_search" %></li>
|
||||
<%= quick_search_form_for(:body_matches, notes_path, "notes") %>
|
||||
<%= subnav_link_to "Listing", notes_path %>
|
||||
<%= subnav_link_to "Posts", posts_path(:tags => "order:note") %>
|
||||
<%= subnav_link_to "Search", search_notes_path %>
|
||||
|
||||
Reference in New Issue
Block a user