<% unless elections.one? %> <%= link_to voting_monitoring_committee_polling_station_closures_path(current_voting) do %> <%= icon "caret-left", class: "icon--small", role: "img" %> <%= t(".change_election") %> <% end %> <% end %>

<%= t(".title", election_title: translated_attribute(election.title)).html_safe %>

<%= admin_filter_selector %>
<% filtered_polling_stations.each do |polling_station| %> <% closure = polling_station.closure_for(election) sign_icon_name, sign_icon_style = closure&.signed? ? ["check", "polling_station__closure--present"] : ["x", "polling_station__closure--not_present"] validated_icon_name, validated_icon_style = closure&.validated? ? ["check", "polling_station__closure--validated"] : ["x", "polling_station__closure--not_validated"] %> > <% 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(".signed") %> <%= t(".validated") %> <%= t("actions.title", scope: "decidim.votings.admin.monitoring_committee_polling_station_closures") %>
<%= translated_attribute(polling_station.title) %> <%= polling_station.address %> <%= polling_station.polling_station_president&.name %> <%= icon sign_icon_name, class: sign_icon_style %> <%= icon validated_icon_name, class: validated_icon_style %> <% if closure.present? && closure.signed? %> <% if closure.validated? && allowed_to?(:read, :monitoring_committee_polling_station_closure, voting: current_voting, closure: closure) %> <%= icon_link_to "eye", voting_monitoring_committee_polling_station_closure_path(current_voting, closure), t("actions.view", scope: "decidim.votings.admin.monitoring_committee_polling_station_closures"), class: "action-icon--view" %> <% elsif closure.signed? && allowed_to?(:validate, :monitoring_committee_polling_station_closure, voting: current_voting, closure: closure) %> <%= icon_link_to "check", edit_voting_monitoring_committee_polling_station_closure_path(current_voting, closure), t("actions.validate", scope: "decidim.votings.admin.monitoring_committee_polling_station_closures"), class: "action-icon--validate" %> <% else %> <%= icon "check", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.validate", scope: "decidim.votings.admin.monitoring_committee_polling_station_closures") %> <% end %> <% else %> <%= icon "eye", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.view", scope: "decidim.votings.admin.monitoring_committee_polling_station_closures") %> <% end %>