{# templates/import_export_batches/batch_list.html #} {% extends "template_base.html" %} {% block title %} {% if kind_of_batch == "CANDIDATE" %} Import Candidates {% elif kind_of_batch == "CONTEST_OFFICE" %} Import Contest Offices {% elif kind_of_batch == "OFFICE_HELD" %} Import Offices Held {% elif kind_of_batch == "IMPORT_BALLOT_ITEM" %} Import Ballot at One Location {% elif kind_of_batch == "IMPORT_POLLING_LOCATION" %} Import Map Point {% elif kind_of_batch == "IMPORT_VOTER" %} Import Voter {% elif kind_of_batch == "MEASURE" %} Import Measures {% elif kind_of_batch == "ORGANIZATION" %} Import Endorsers {% elif kind_of_batch == "POLITICIAN" %} Import Politicians {% elif kind_of_batch == "POSITION" %} Import Positions {% else %} List of Batches {% endif %} {% endblock %} {% block content %} {% load template_filters %}

< Back to Import Batches Index

{% if kind_of_batch == "CANDIDATE" %}

Current Candidates{% if google_civic_election_id > 0 %} for this Election{% endif %}

{% elif kind_of_batch == "CONTEST_OFFICE" %}

Current Offices{% if google_civic_election_id > 0 %} for this Election{% endif %}

{% elif kind_of_batch == "OFFICE_HELD" %} {% elif kind_of_batch == "IMPORT_BALLOT_ITEM" %}

Current Ballots{% if google_civic_election_id > 0 %} for this Election{% endif %}

{% elif kind_of_batch == "IMPORT_POLLING_LOCATION" %}

Map Points

{% elif kind_of_batch == "MEASURE" %}

Current Measures{% if google_civic_election_id > 0 %} for this Election{% endif %}

{% elif kind_of_batch == "ORGANIZATION" %}

Current Endorsers{% if google_civic_election_id > 0 %} for this Election{% endif %}

{% elif kind_of_batch == "POLITICIAN" %} {% elif kind_of_batch == "POSITION" %}

Current Positions{% if google_civic_election_id > 0 %} for this Election{% endif %}

{% endif %} {% if not kind_of_batch %}

Import Batches

To import, you must choose the kind of data you are importing: Ballot at One Location - Candidate - Contest Office - Measure - Office Held - Endorser - Politician - Map Point - Position {% else %}

{% if kind_of_batch == "CANDIDATE" %} Import Candidate Data in Bulk {% elif kind_of_batch == "CONTEST_OFFICE" %} Import Contest Office Data in Bulk {% elif kind_of_batch == "OFFICE_HELD" %} Import Office Held Data in Bulk {% elif kind_of_batch == "IMPORT_BALLOT_ITEM" %} Import Ballot Items for One Map Point {% elif kind_of_batch == "IMPORT_POLLING_LOCATION" %} Import Map Point Data in Bulk {% elif kind_of_batch == "IMPORT_VOTER" %} Import/Export Voter {% elif kind_of_batch == "MEASURE" %} Import Measure Data in Bulk {% elif kind_of_batch == "ORGANIZATION" %} Import Endorser Data in Bulk {% elif kind_of_batch == "POLITICIAN" %} Import Politician Data in Bulk {% elif kind_of_batch == "POSITION" %} Import Position Data in Bulk {% else %} Kind of data not recognized: Please STOP {% endif %}

{% csrf_token %} {% if ask_for_election %}
{% if election_list %} {% endif %}{# End of if election_list #} {# Default to showing only upcoming elections #}
{% endif %} {% if kind_of_batch == "POSITION" %}
{% endif %} {% if kind_of_batch == "IMPORT_BALLOT_ITEM" %}
{# Choose map point for this ballot_returned #} Search for City: or ZIP:
{% if polling_location_list %}
{% else %} (There are no map points to choose from)
{% endif %}
{% endif %}
{% endif %} {% if kind_of_batch == "IMPORT_VOTER" %} Export Voter {% endif %} {% if batch_list %} {% for one_batch in batch_list %} {% endfor %}
# Batch Header ID: Batch Name Action Election Other ID Total Records Analyzed / Stored Date Created (GMT)
{{ forloop.counter }} {{ one_batch.batch_name }} review, export-csv, batch_row-export-csv {% for election in election_list %} {% if election.google_civic_election_id|slugify == one_batch.google_civic_election_id|slugify %} {{ election.election_name }} - {{ election.google_civic_election_id }} - {{ election.election_day_text }} {% endif %} {% endfor %} {% if one_batch.polling_location_we_vote_id %} {{ one_batch.polling_location_we_vote_id }} {% elif one_batch.organization_we_vote_id %} {{ one_batch.organization_we_vote_id }} {% endif %} {{ one_batch.batch_row_count }} {{ one_batch.batch_row_action_count }} / {{ one_batch.batch_row_action_to_update_count }} {{ one_batch.date_created }}

{% else %}





(no batches found)

{% endif %} {% endblock %}