views: refactor quick search forms.

This commit is contained in:
evazion
2019-09-10 21:07:28 -05:00
parent ffccc503f7
commit 896f144eb6
23 changed files with 24 additions and 42 deletions

View File

@@ -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 %>

View File

@@ -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 %>