displays recounts for a single booth
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user