<% if request.post? && in_person_form.valid? %> <%= cell("decidim/announcement", { title: t(".census_not_present"), body: t(".census_not_present_description") }, callout_class: "alert") %> <% end %>

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

<%= decidim_form_for(in_person_form, url: polling_officer_election_in_person_votes_path(polling_officer, election), html: { class: "form", autocomplete: "off" }) do |f| %> <%= form_required_explanation %>
<%= f.select :document_type, in_person_form.options_for_document_type_select, { include_blank: t(".select") }, { multiple: false } %> <%= f.text_field :document_number, label: t(".document_number"), placeholder: t(".document_number_placeholder") %>
<%= f.label t(".date_of_birth") %>
<%= f.text_field :day, placeholder: t(".day_placeholder"), label: t(".day"), "data-autojump" => true, "data-max-length" => 2, "data-jump-next" => "#in_person_month" %> <%= f.text_field :month, placeholder: t(".month_placeholder"), label: t(".month"), "data-autojump" => true, "data-max-length" => 2, "data-jump-prev" => "#in_person_day", "data-jump-next" => "#in_person_year" %> <%= f.text_field :year, placeholder: t(".year_placeholder"), label: t(".year"), "data-autojump" => true, "data-max-length" => 4, "data-jump-prev" => "#in_person_month" %>
<%= link_to polling_officers_path, class: "button button__sm md:button__lg button__text-secondary" do %> <%= icon "arrow-left-line" %> <%= t("back", scope: "decidim.votings.polling_officer_zone.in_person_votes.new") %> <% end %> <%= f.submit t(".validate_document"), class: "button button__sm md:button__lg button__secondary" %>
<% end %>