{# templates/election/election_migration.html #} {% extends "template_base.html" %} {% block title %}Migrate Election Data{% endblock %} {% block content %} {% load template_filters %} < Back to Elections

Migrate Election Data

Only select a state if we are moving one state's election from a day where other states are also running an election. When a state code is selected, some data cannot be moved.

{% csrf_token %} {% if state_list %} {% endif %}{# End of if state_list #}
From this Election:  {% if from_election_id %} {{ from_election.election_name }} - {{ from_election.google_civic_election_id }} - {{ from_election.election_day_text }} {% else %} {% if from_election_list %} {% else %} "From" Election List is Missing {% endif %}{# End of if from_election_list #} {% endif %}
State to Migrate: 
 
To this Election:  {% if to_election_id %} {{ google_civic_election.election_name }} - {{ google_civic_election.google_civic_election_id }} - {{ google_civic_election.election_day_text }} {% else %} {% if google_civic_election_list %} {% else %} "To" Election List is Missing {% endif %}{# End of if google_civic_election_list #} {% endif %}
{% if from_election_id and to_election_id %} {% if change_now %}

Go Back to Election

{% else %}

cancel

{% endif %} {% else %}

This will analyze *what* data will be migrated, but does not actually move the data.

{% if from_election_id %} cancel {% else %} cancel {% endif %}

{% endif %}

{% if from_election_id %} {% if from_election_office_count %}
We Vote Election: Offices
{% for from_election_office in from_election_office_list %} {% endfor %}
{{ forloop.counter }} {{ from_election_office.office_name }} - {{ from_election_office.we_vote_id }}  
{% else %} no offices found {% endif %} {% if from_election_candidate_count %}
We Vote Election: Candidates
{% for candidate in from_election_candidate_list %} {% endfor %}
{{ forloop.counter }} {% if candidate.candidate_photo_url %} {% else %}   {% endif %} {{ candidate.candidate_name }} - {{ candidate.we_vote_id }} {{ candidate.position_count }}
{% endif %} {% endif %} {% endblock %}