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') %>
|
<%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<table id="officers">
|
<% if @officers.any? %>
|
||||||
|
<table id="officers">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><%= t('admin.poll_officers.officer.name') %></th>
|
<th><%= t('admin.poll_officers.officer.name') %></th>
|
||||||
@@ -46,6 +47,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= paginate @officers %>
|
<%= paginate @officers %>
|
||||||
|
<% end %>
|
||||||
Reference in New Issue
Block a user