Remove daily officer recounts from admin poll recounts list

This commit is contained in:
Bertocq
2017-07-19 12:59:39 +02:00
parent c40294e931
commit d98425f45b
5 changed files with 3 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ class Admin::Poll::RecountsController < Admin::BaseController
def index
@booth_assignments = @poll.booth_assignments.
includes(:booth, :recounts, :final_recounts, :voters).
includes(:booth, :final_recounts, :voters).
order("poll_booths.name").
page(params[:page]).per(50)
end
@@ -13,4 +13,4 @@ class Admin::Poll::RecountsController < Admin::BaseController
def load_poll
@poll = ::Poll.find(params[:poll_id])
end
end
end

View File

@@ -12,7 +12,6 @@
<table class="fixed margin">
<thead>
<th><%= t("admin.recounts.index.table_booth_name") %></th>
<th class="text-center"><%= t("admin.recounts.index.table_recounts") %></th>
<th class="text-center"><%= t("admin.recounts.index.table_final_recount") %></th>
<th class="text-center"><%= t("admin.recounts.index.table_system_count") %></th>
</thead>
@@ -27,13 +26,6 @@
<%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: 'tab-recounts') %>
</strong>
</td>
<td class="text-center <%= 'count-error' if recount.to_i != system_count %>">
<% if recount.present? %>
<%= recount %>
<% else %>
<span>-</span>
<% end %>
</td>
<td class="text-center <%= 'count-error' if final_recount.to_i != system_count %>">
<% if final_recount.present? %>
<strong><%= final_recount %></strong>
@@ -55,4 +47,4 @@
<%= paginate @booth_assignments %>
<% end %>
</div>
</div>