<% add_decidim_page_title(t(".title")) %>

<%= t(".title") %> <%= link_to t("actions.new", scope: "decidim.votings.polling_officers"), new_voting_polling_officer_path(current_voting), class: "button button__sm button__secondary" if allowed_to? :create, :polling_officer, voting: current_voting %>

<%= admin_filter_selector %>
<% filtered_polling_officers.each do |polling_officer| %> <% end %>
<%= t("models.polling_officer.fields.name", scope: "decidim.votings.admin") %> <%= t("models.polling_officer.fields.email", scope: "decidim.votings.admin") %> <%= t("models.polling_officer.fields.polling_station", scope: "decidim.votings.admin") %> <%= t("actions.title", scope: "decidim.votings.polling_officers") %>
<%= polling_officer.name %> <%= polling_officer.email %> <% if polling_officer.presided_polling_station.present? %> <%= link_to "#{translated_attribute(polling_officer.presided_polling_station.title)} (#{t(".role_president")})", edit_voting_polling_station_path(current_voting, polling_officer.presided_polling_station) %> <% elsif polling_officer.managed_polling_station.present? %> <%= link_to "#{translated_attribute(polling_officer.managed_polling_station.title)} (#{t(".role_manager")})", edit_voting_polling_station_path(current_voting, polling_officer.managed_polling_station) %> <% end %> <% if allowed_to? :delete, :polling_officer, voting: current_voting, polling_officer: polling_officer %> <%= icon_link_to "delete-bin-line", voting_polling_officer_path(current_voting, polling_officer), t("actions.destroy", scope: "decidim.votings.polling_officers"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.votings.polling_officers") } %> <% else %> <%= icon "delete-bin-line", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.votings.polling_officers") %> <% end %>