{# templates/ballot/ballot_item_list_edit.html #} {% extends "template_base.html" %} {% block title %}{% if ballot_returned.id %}Ballot Returned for '{{ ballot_returned.text_for_map_search|title }}'{% else %} New Ballot Returned{% endif %}{% endblock %} {% block content %} {% load template_filters %}

{% if election and election.id %}
< Back to Election {% endif %}

{% if ballot_returned.id %}Ballot Returned for '{{ ballot_returned.text_for_map_search|title }}'{% else %}New Ballot Returned{% endif %}

{% if error_message %}

{{ error_message }}

{% endif %} {% if election_list %}
{% csrf_token %}
{% endif %}{# End of if election_list #}
{% csrf_token %} {% if ballot_returned.id %} {# If here we are working with an existing ballot_returned entry #} {% if ballot_returned.google_civic_election_id|convert_to_int < 1000000 %}

This ballot is from Google Civic API.

{% endif %}
{% if ballot_returned.date_last_updated %}Date Last Updated: {{ ballot_returned.date_last_updated }}{% endif %}
{% if polling_location_deleted %}POLLING LOCATION DELETED{% endif %}
{% if ballot_returned.voter_id %}
{% endif %}

Tools

{#{% if election.id %}#} {# {% if ballot_returned_id %}#} {# #} {# Refresh data from Google Civic
#} {# {% elif ballot_returned.id %}#} {# #} {# Refresh data from Google Civic
#} {# {% endif %}#} {#{% endif %}#} {% if ballot_item_list %}

Existing Ballot Items

{% for ballot_item in ballot_item_list %}
{% if ballot_item.contest_office_we_vote_id %} {{ ballot_item.ballot_item_display_name }} ( {{ ballot_item.contest_office_we_vote_id }} {% if ballot_item.vote_usa_office_id %} {{ ballot_item.vote_usa_office_id }}  {% endif %} {% if ballot_item.ctcl_uuid %} {{ ballot_item.ctcl_uuid }}  {% endif %} ) {% if ballot_item.candidates_string %}: {{ ballot_item.candidates_string }}{% endif %} - Delete
{% elif ballot_item.contest_measure_we_vote_id %} {{ ballot_item.ballot_item_display_name }} ( {{ ballot_item.contest_measure_we_vote_id }} ) - Delete
{% endif %} {% if ballot_item.google_ballot_placement %} google_ballot_placement: {{ ballot_item.google_ballot_placement|default_if_none:"" }} {% endif %}
{% endfor %}{# for ballot_item in ballot_item_list #} {% endif %}
{% if ballot_returned and ballot_returned.polling_location_we_vote_id %}      Edit Original Map Point {% endif %}
{% else %} {# If here we are creating a new ballot_returned entry #} We manually create ballots within We Vote before Google Civic data is available, so we can get started matching local voter guides to candidates and measures.

{% if polling_location_found %}

Creating Ballot Returned at this Map Point

{% if polling_location.location_name %}{{ polling_location.location_name }}{% else %}missing location name{% endif %} - {{ polling_location.get_text_for_map_search|title }} {% if polling_location.we_vote_id %}({{ polling_location.we_vote_id }}){% endif %}
Latitude: {{ polling_location.latitude }}, Longitude: {{ polling_location.longitude }}

{% else %} {# 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 google_civic_election_id|convert_to_int >= 1000000 %} {# If here, we are looking at a We Vote election - 2016-08-10 This filter turned off for now #} {% endif %}
{# ################################### #} {% if contest_offices_to_choose_list %}
Add Office to This Ballot Returned
{# Office Option 1 #} add office to the election {% else %} (no offices exist for this election yet -- you need to add offices to the election first ) {% endif %}

{# ################################### #} {% if measure_list %}
Add Measure to This Ballot Returned
{# Measure Option 1 #} add measures to the election {% else %} (no measures exist for this election yet -- you need to add measures to the election first ) {% endif %}

{% if election and election.id %} cancel {% endif %}



Import Offices (Import/Export Batches)
Import Measures (Import/Export Batches)
{% if ballot_returned and ballot_returned.id %}
Delete this Ballot Returned and all Ballot Items
{% endif %}

{% endblock %}