hides table if there are no officers
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
<%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %>
|
||||
</h3>
|
||||
|
||||
<table id="officers">
|
||||
<% if @officers.any? %>
|
||||
<table id="officers">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t('admin.poll_officers.officer.name') %></th>
|
||||
@@ -46,6 +47,7 @@
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<%= paginate @officers %>
|
||||
<%= paginate @officers %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user