{# templates/election/election_summary.html #} {% extends "template_base.html" %} {% block title %}{% if election %}{{ election.election_name }} {% if is_national_election and state_code %} - {{ state_code|upper }} {% else %} Summary {% endif %} {% else %}No Election Found{% endif %}{% endblock %} {% block content %} {% load template_filters %} {% if election %}

{{ election.election_name }} {% if is_national_election and state_code %} for state {{ state_code|upper }} {% endif %}

{% if is_national_election %}
{% csrf_token %} Focus on One State: {% if state_list %} {% endif %}{# End of if state_list #} {% if is_national_election and not state_code %} * Required to Connect with Ballotpedia because this is a National Election {% endif %}
{% endif %} {% if google_civic_election_id %}
Live? Election Name Date Google Civic ID Offices{% if election.offices_without_candidates_count %}
(w/o Candidates){% endif %}
Candidates{% if election.candidates_without_photo_count %}
(w/o Photos){% endif %}
Measures Ballot
Locations
Voter Guides
(Public Positions)
{{ forloop.counter }} {% if election.include_in_list_for_voters %}Yes{% endif %}{% if election.include_in_list_for_voters and election.election_preparation_finished %}, {% endif %} {% if election.election_preparation_finished %}DATA{% endif %}{% if election.include_in_list_for_voters or election.election_preparation_finished and election.candidate_photos_finished %}, {% endif %} {% if election.candidate_photos_finished %}PHOTOS{% endif %} {{ election.election_name }} {% if is_national_election and state_code %} for state {{ state_code|upper }} {% endif %} {% if election.internal_notes %}
{{ election.internal_notes|default_if_none:""|truncatechars:50 }} {% endif %}
{{ election.election_day_text }} {% if election.days_until_election > 0 %} (in {{ election.days_until_election }} days){% endif %} {{ election.google_civic_election_id }} {% if election.offices_with_candidates_count %} {{ election.offices_with_candidates_count|default_if_none:"" }} {% endif %} {% if election.offices_without_candidates_count %} ({{ election.offices_without_candidates_count|default_if_none:"" }}) {% endif %} {% if election.candidate_count %} {{ election.candidate_count|default_if_none:"" }} {% endif %} {% if election.candidates_without_photo_count %} ({{ election.candidates_without_photo_count|default_if_none:"" }} {% if election.candidates_without_photo_percentage %} : {{ election.candidates_without_photo_percentage|floatformat:"0" }}%{% endif %}) {% endif %} {% if election.candidate_count %}
open json {% endif %}
{% if election.measure_count %} {{ election.measure_count|default_if_none:"" }} {% endif %} {% if election.ballot_returned_count %}{{ election.ballot_returned_count|default_if_none:"" }} {% if election.ballot_location_display_option_on_count %} / {{ election.ballot_location_display_option_on_count|default_if_none:"" }}{% endif %} {% endif %} {% if election.batches_not_processed %} {% if election.batches_not_processed_batch_set_id %} ({{ election.batches_not_processed|default_if_none:"" }}) {% else %} ({{ election.batches_not_processed|default_if_none:"" }}) {% endif %} {% endif %} {% if election.voter_guides_count %} {{ election.voter_guides_count|default_if_none:"" }} {% endif %} {% if election.public_positions_count %} ({{ election.public_positions_count|default_if_none:"" }}) {% endif %}
{% endif %}
Show in lists of elections for voters (edit)     Ignore this election     Election data import finished (Offices, Candidates, Ballots)     Candidate photos finished     Is National Election (edit)
Use CTCL as default data source     Use CTCL for state codes:     Use Google Civic     Use Ballotpedia      Use Vote USA
{% if election.is_national_election %}{% else %}
{% endif %} {#
#} {# #} {#
#} {# #} {#
#} {#
#} {% if ballotpedia_election_list %}
{% for ballotpedia_election in ballotpedia_election_list %} {% endfor %}
ID District Name State District Type Election Type
{{ forloop.counter }} {{ ballotpedia_election.ballotpedia_election_id|default_if_none:"" }} {{ ballotpedia_election.district_name|default_if_none:"" }} {{ ballotpedia_election.state_code|default_if_none:""|upper }} {{ ballotpedia_election.google_civic_election_id|default_if_none:"" }} {{ ballotpedia_election.district_type|default_if_none:"" }} {{ ballotpedia_election.election_type|default_if_none:"" }} {{ ballotpedia_election.election_description|default_if_none:"" }}
{% if more_than_three_ballotpedia_elections %} {% if all_ballotpedia_elections_shown %} hide most Ballotpedia elections {% else %} show all Ballotpedia elections {% endif %} {% endif %} {# #}
{% endif %}{# End of if ballotpedia_election_list #} {% if ballotpedia_election_list %} {% else %} {#
#} {# #} {#
#} {# #} {#
#} {#
#} {% endif %}

See Offices for this Election , See Candidates for this Election

{% csrf_token %} Retrieve Data for Election
  1. Review Batch Process Status List (for this election)
  2. {% if election.use_ballotpedia_as_data_source %} {% if not is_national_election or is_national_election and state_code %}
  3. Ballotpedia: Retrieve Ballots from Bulk Map Points, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %}
    Clicking this link schedules a Batch Process that does the following:
    • For each map point in this state, reach out to Ballotpedia "sample_ballot_elections" API with lat/long and retrieve the districts covered.
    • Reach out to Ballotpedia "sample_ballot_results" API with the districts and election date.
    • Store the offices, candidates and measures returned.
  4. Ballotpedia: Refresh BallotItems from Bulk Map Points, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %}
  5. {% else %}
  6. Ballotpedia: To retrieve Ballot Data for this National Election, please specify a state.
  7. {% endif %}
  8. Ballotpedia - ALL STATES: Schedule Batch Processes to Retrieve Ballots for this Election (All States), up to {{ map_points_retrieved_each_batch_chunk }} at a time
  9. {% endif %}{# if election.use_ballotpedia_as_data_source #} {% if election.use_ctcl_as_data_source or use_ctcl_as_data_source_override %} {% if not is_national_election or is_national_election and state_code %}
  10. CTCL: Retrieve Ballots from Bulk Map Points, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %}
    Clicking this link schedules a Batch Process that does the following:
    • For each map point in this state, reach out to CTCL "voterinfo" API and retrieve the offices/candidates/measures.
    • Store the offices, candidates and measures returned.
  11. CTCL: Refresh Ballots from Bulk Map Points, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %} (Oldest: {{ ballot_returned_oldest_date }})
  12. CTCL-IN_DEVELOPMENT: Refresh BallotItems from Voter-entered Street Addresses, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %} (Oldest: {{ ballot_returned_voter_oldest_date }})
  13. {% else %}
  14. CTCL: To retrieve Ballot Data for this National Election, please specify a state.
  15. {% endif %} {% endif %}{# if election.use_ctcl_as_data_source #} {% if election.use_vote_usa_as_data_source %} {% if not is_national_election or is_national_election and state_code %}
  16. Vote USA: Retrieve Ballots from Bulk Map Points, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %}
    Clicking this link schedules a Batch Process that does the following:
    • For each map point in this state, reach out to Vote USA "voterInfoQuery" API and retrieve the offices/candidates/measures.
    • Store the offices, candidates and measures returned.
  17. Vote USA: Refresh Ballots from Bulk Map Points, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %} (Oldest: {{ ballot_returned_oldest_date }})
  18. Vote USA: Refresh BallotItems from Voter-entered Street Addresses, up to {{ map_points_retrieved_each_batch_chunk }} at a time{% if state_code %} (for {{ state_code|upper }}){% endif %} (Oldest: {{ ballot_returned_voter_oldest_date }})
  19. {% else %}
  20. Vote USA: To retrieve Ballot Data for this National Election, please specify a state.
  21. {% endif %} {% endif %}{# if election.use_vote_usa_as_data_source #} {% if election.use_google_civic_as_data_source %} {% if election.google_civic_election_id|convert_to_int < 1000000 %}
  22. Google Civic: Retrieve Ballot Data for this Election{% if state_code %} (for {{ state_code|upper }}){% endif %}
    Reach out to Google Civic API and ask for ballots from many map points so we can stitch together the measures, races and candidates. Add "import_limit" as a URL variable to increase the number of map points to retrieve ballots from.
  23. {% else %}
  24. Google Civic: To retrieve Ballot Data from Google Civic, add google_civic_election_id from Google.
  25. {% endif %} {% endif %}{# if election.use_google_civic_as_data_source #} {% if election.use_ballotpedia_as_data_source %} {% endif %}{# if election.use_ballotpedia_as_data_source #}
Data Grooming Tools Less Frequent Data Grooming Tools {% if ballot_returned_search %} clear search {% endif %}
{% if ballot_returned_list %} {{ ballot_returned_count_entire_election }} Ballot Returned Entries. These are ballots that voters can find from WebApp.
{% for ballot_returned in ballot_returned_list %} {% if forloop.counter == 1 or forloop.counter|divisibleby:35 %} {% endif %} {% endfor %}
Ballot Returned ID Display Name Shortcut? Text for Map Search Lat/Long? Offices & Candidates Ballot Items Voter Map Point
{{ forloop.counter }} {{ ballot_returned.we_vote_id }}  {% if ballot_returned.ballot_location_display_name %}{{ ballot_returned.ballot_location_display_name }}{% endif %} {% if ballot_returned.ballot_location_shortcut %}{{ ballot_returned.ballot_location_shortcut }}{% endif %}{% if ballot_returned.ballot_location_display_option_on %} ON{% endif %} {{ ballot_returned.text_for_map_search }} {% if ballot_returned.latitude %}yes{% endif %} {% if ballot_returned.office_and_candidate_text %}{{ ballot_returned.office_and_candidate_text }}{% endif %} {% if ballot_returned.ballot_items_count %}{{ ballot_returned.ballot_items_count }}{% endif %} {% if ballot_returned.voter_id and ballot_returned.voter_id != 0 %} {{ ballot_returned.voter_id }} {% endif %} {% if ballot_returned.polling_location_we_vote_id %} {{ ballot_returned.polling_location_we_vote_id|default_if_none:"" }} {% endif %}




{% else %}

(no ballot_returned data found)

{% endif %} {% if voter_ballot_saved_list %} {{ voter_ballot_saved_count_entire_election }} Voter Ballot Saved entries. There is one entry for every voter linking the voter to a ballot.
{% for voter_ballot_saved in voter_ballot_saved_list %} {% if forloop.counter == 1 or forloop.counter|divisibleby:35 %} {% endif %} {% endfor %}
ID Ballot Returned ID Original Text for Map Search Voter Id Map Point
{{ forloop.counter }} {{ voter_ballot_saved.id }} {% if voter_ballot_saved.ballot_returned_we_vote_id %} {{ voter_ballot_saved.ballot_returned_we_vote_id }} {% endif %} {{ voter_ballot_saved.original_text_for_map_search }} {% if voter_ballot_saved.voter_id and voter_ballot_saved.voter_id != 0 %} {{ voter_ballot_saved.voter_id }} {% endif %} {% if voter_ballot_saved.polling_location_we_vote_id_source %} copied from {{ voter_ballot_saved.polling_location_we_vote_id_source }} {% endif %}




{% else %}

(no voter_ballot_saved data found)

{% endif %}
{% else %}

No Election Found

Please visit the Election List page. {% endif %} {% endblock %}