From 24e4f4518f4e4a07709bb76338ec84409973a0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 1 Oct 2019 01:55:54 +0200 Subject: [PATCH] Render search field before "no results" message The same way it's done in other sections. --- app/views/admin/poll/booths/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/poll/booths/index.html.erb b/app/views/admin/poll/booths/index.html.erb index 9a7e38247..23ad5667f 100644 --- a/app/views/admin/poll/booths/index.html.erb +++ b/app/views/admin/poll/booths/index.html.erb @@ -4,14 +4,14 @@ <%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button float-right" %> <% end %> +<%= render "/admin/shared/booth_search", url: admin_booths_path %> + <% if @booths.empty? %>
<%= t("admin.booths.index.no_booths") %>
<% end %> -<%= render "/admin/shared/booth_search", url: admin_booths_path %> - <% if @booths.any? %>

<%= page_entries_info @booths %>