-
<%= link_to t("admin.poll_booth_assignments.show.officers"), "#tab-officers" %>
-
<%= link_to t("admin.poll_booth_assignments.show.recounts"), "#tab-recounts" %>
<% if @booth_assignment.officers.empty? %>
<%= t("admin.poll_booth_assignments.show.no_officers") %>
<% else %>
<%= t("admin.poll_booth_assignments.show.officers_list") %>
<% @booth_assignment.officers.uniq.each do |officer| %>
| <%= link_to officer.name, by_officer_admin_poll_officer_assignments_path(@poll, officer_id: officer.id) %> |
<%= officer.email %> |
<% end %>
<% end %>
<% if @booth_assignment.recounts.empty? %>
<%= t("admin.poll_booth_assignments.show.no_recounts") %>
<% else %>
<%= t("admin.poll_booth_assignments.show.recounts_list") %>
| <%= t("admin.poll_booth_assignments.show.date") %> |
<%= t("admin.poll_booth_assignments.show.count_by_officer") %> |
<%= t("admin.poll_booth_assignments.show.count_final") %> |
<%= t("admin.poll_booth_assignments.show.count_by_system") %> |
<% (@poll.starts_at.to_date..@poll.ends_at.to_date).each do |voting_date| %>
<% recount = recount_for_date(@booth_assignment.recounts, voting_date) %>
<% final_recount = final_recount_for_date(@booth_assignment.final_recounts, voting_date) %>
<% system_count = @voters_by_date[voting_date].present? ? @voters_by_date[voting_date].size : 0 %>
| <%= l voting_date %> |
<% if recount.present? %>
<%= recount.count %> |
<% else %>
- |
<% end %>
<% if final_recount.present? %>
<%= final_recount.count %> |
<% else %>
- |
<% end %>
<%= system_count %> |
<% end %>
<% end %>