views: refactor quick search forms.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<%= form_tag(wiki_pages_path, :method => :get) do %>
|
||||
<%= text_field "search", "title", id: "quick_search_title", placeholder: "Search wiki pages", data: { autocomplete: "wiki-page" } %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= render "wiki_pages/quick_search" %></li>
|
||||
<%= quick_search_form_for(:title, wiki_pages_path, "wiki pages", autocomplete: "wiki-page") %>
|
||||
|
||||
<%= subnav_link_to "Listing", wiki_pages_path %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user