views: refactor quick search forms.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<%= form_tag(pools_path, :method => :get) do %>
|
||||
<%= text_field "search", "name_matches", id: "quick_search_name_matches", placeholder: "Search pools", data: { autocomplete: "pool" } %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= render "pools/quick_search" %></li>
|
||||
<%= quick_search_form_for(:name_matches, pools_path, "pools", autocomplete: "pool") %>
|
||||
<%= subnav_link_to "Gallery", gallery_pools_path %>
|
||||
<%= subnav_link_to "Listing", pools_path %>
|
||||
<%= subnav_link_to "New", new_pool_path %>
|
||||
|
||||
Reference in New Issue
Block a user