<% add_decidim_page_title(t("admin.index.title", scope: "decidim.verifications.csv_census")) %>

<%= t("admin.index.title", scope: "decidim.verifications.csv_census") %>

<% if @status.count > 0 %>

<%= t("decidim.verifications.csv_census.admin.index.data", count: @status.count, due_date: l(@status.last_import_at, format: :long)) %>

<%= link_to t("decidim.verifications.csv_census.admin.destroy.title"), destroy_all_census_path, method: :delete, class: "button button__sm button__secondary alert", data: { confirm: t("decidim.verifications.csv_census.admin.destroy.confirm") } %>
<% else %>

<%= t("admin.index.empty", scope: "decidim.verifications.csv_census") %>

<% end %>

<%= t("admin.new.title", scope: "decidim.verifications.csv_census") %>

<%= t("decidim.verifications.csv_census.admin.new.info") %>

<%= t("decidim.verifications.csv_census.admin.new.example") %>
<%= decidim_form_for @form, url: census_path, multipart: true do |form| %> <%= label_tag :file, t("admin.new.file", scope: "decidim.verifications.csv_census") %> <%= form.file_field :file %>
<%= submit_tag t("admin.new.submit", scope: "decidim.verifications.csv_census"), class: "button button__sm button__secondary" %>
<% end %>