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,3 +0,0 @@
<%= form_tag(dmails_path, :method => :get) do %>
<%= text_field "search", "message_matches", :id => "quick_search_message_matches", :placeholder => "Search messages" %>
<% end %>

View File

@@ -1,6 +1,6 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= render "quick_search" %></li>
<%= quick_search_form_for(:message_matches, dmails_path, "dmails") %>
<%= subnav_link_to "All", all_dmails_path(set_default_folder: true) %>
<%= subnav_link_to "Received", received_dmails_path(set_default_folder: true) %>
<%= subnav_link_to "Sent", sent_dmails_path(set_default_folder: true) %>