Render search field before "no results" message
The same way it's done in other sections.
This commit is contained in:
@@ -4,14 +4,14 @@
|
|||||||
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button float-right" %>
|
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button float-right" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<%= render "/admin/shared/booth_search", url: admin_booths_path %>
|
||||||
|
|
||||||
<% if @booths.empty? %>
|
<% if @booths.empty? %>
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<%= t("admin.booths.index.no_booths") %>
|
<%= t("admin.booths.index.no_booths") %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "/admin/shared/booth_search", url: admin_booths_path %>
|
|
||||||
|
|
||||||
<% if @booths.any? %>
|
<% if @booths.any? %>
|
||||||
<h3><%= page_entries_info @booths %></h3>
|
<h3><%= page_entries_info @booths %></h3>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
Reference in New Issue
Block a user