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

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

<%= admin_filter_selector %>
<% filtered_polling_stations.each do |polling_station| %> <% end %>
<%= t("models.polling_station.fields.title", scope: "decidim.votings.admin") %> <%= t("models.polling_station.fields.address", scope: "decidim.votings.admin") %> <%= t("models.polling_station.fields.polling_station_president", scope: "decidim.votings.admin") %> <%= t("models.polling_station.fields.polling_station_managers", scope: "decidim.votings.admin") %> <%= t("actions.title", scope: "decidim.votings.polling_stations") %>
<%= translated_attribute(polling_station.title) %> <%= polling_station.address %> <%= polling_station.polling_station_president&.name %> <%= safe_join(polling_station.polling_station_managers.map(&:name), ", ") %> <% if allowed_to? :update, :polling_station, voting: current_voting, polling_station: polling_station %> <%= icon_link_to "pencil-line", edit_voting_polling_station_path(current_voting, polling_station), t("actions.edit", scope: "decidim.votings.polling_stations"), class: "action-icon--edit" %> <% else %> <%= icon "pencil-line", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.edit", scope: "decidim.votings.polling_stations") %> <% end %> <% if allowed_to? :delete, :polling_station, voting: current_voting, polling_station: polling_station %> <%= icon_link_to "delete-bin-line", voting_polling_station_path(current_voting, polling_station), t("actions.destroy", scope: "decidim.votings.polling_stations"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.votings.polling_stations") } %> <% else %> <%= icon "delete-bin-line", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.votings.polling_stations") %> <% end %>