displays recounts for a single booth

This commit is contained in:
rgarcia
2017-10-18 22:40:53 +02:00
parent 5d3654f92f
commit 39ebc5173a
2 changed files with 2 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
officer_assignments: [officer: [:user]]).find(params[:id]) officer_assignments: [officer: [:user]]).find(params[:id])
@voters_by_date = @booth_assignment.voters.group_by {|v| v.created_at.to_date} @voters_by_date = @booth_assignment.voters.group_by {|v| v.created_at.to_date}
@partial_results = @booth_assignment.partial_results @partial_results = @booth_assignment.partial_results
@recounts = @booth_assignment.recounts
end end
def create def create

View File

@@ -6,6 +6,7 @@
<%= t("admin.results.index.no_results") %> <%= t("admin.results.index.no_results") %>
</div> </div>
<% else %> <% else %>
<%= render "admin/poll/results/recount", resource: @booth_assignment %>
<%= render "admin/poll/results/result" %> <%= render "admin/poll/results/result" %>
<% end %> <% end %>
</div> </div>