<% if request.post? && in_person_form.valid? %>
<%= t(".census_not_present") %>

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

<% 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| %>
<%= f.label :document_type do %> <%= f.select :document_type, in_person_form.options_for_document_type_select, { include_blank: t(".select") }, { multiple: false } %> <% end %>
<%= f.text_field :document_number, label: t(".document_number"), placeholder: t(".document_number_placeholder") %>
<%= t(".date_of_birth") %>
<%= f.label :day, t(".day"), class: "columns small-4" do %> <%= f.text_field :day, placeholder: t(".day_placeholder"), "data-autojump" => true, "data-max-length" => 2, "data-jump-next" => "#in_person_month" %> <% end %> <%= f.label :month, t(".month"), class: "columns small-4" do %> <%= f.text_field :month, placeholder: t(".month_placeholder"), "data-autojump" => true, "data-max-length" => 2, "data-jump-prev" => "#in_person_day", "data-jump-next" => "#in_person_year" %> <% end %> <%= f.label :year, t(".year"), class: "columns small-4" do %> <%= f.text_field :year, placeholder: t(".year_placeholder"), "data-autojump" => true, "data-max-length" => 4, "data-jump-prev" => "#in_person_month" %> <% end %>
<%= f.submit t(".validate_document"), class: "button button--sc expanded mt-sm mb-none" %> <% end %>