<%= append_javascript_pack_tag "decidim_votings" %> <%= append_stylesheet_pack_tag "decidim_votings" %> <%= render layout: "layouts/decidim/shared/layout_center" do %>

<%= t("heading", scope: "decidim.votings.polling_officer_zone.closures.edit") %>

<%= content_tag :span, present(election).title, title: t("polling_station.election", scope: "decidim.votings.polling_officer_zone.polling_officers.index") %> <%= content_tag :span, present(election.participatory_space).title, class: "text-gray", title: t("polling_station.voting", scope: "decidim.votings.polling_officer_zone.polling_officers.index") %>

<%= content_tag :p, t("info_text", scope: "decidim.votings.polling_officer_zone.closures.edit"), class: "text-gray-2" %>
<%= decidim_form_for(@form, url: polling_officer_election_closure_path(polling_officer, election), html: { class: "form edit_closure" }) do |form| %> <%= form_required_explanation %> <%= form.hidden_field :election_id %> <%= form.hidden_field :polling_station_id %>
<%= render partial: "ballot_results_form_fields", locals: { form: } %> <%= render partial: "question_results_form_fields", locals: { form: } %>
<%= link_to polling_officers_path, class: "button button__sm md:button__lg button__text-secondary" do %> <%= icon "arrow-left-line" %> <%= t("back_to_polling_stations", scope: "decidim.votings.polling_officer_zone.closures") %> <% end %>
<%= form.submit t("save_recount", scope: "decidim.votings.polling_officer_zone.closures.edit"), class: "button button__sm md:button__lg button__secondary" %>
<% end %> <%= render "modal_ballots_results_count_error" %> <% end %>