{# templates/office/offices_copy.html #} {% extends "template_base.html" %} {% block title %}Copy Offices & Candidates{% endblock %} {% block content %}

Copy Offices & Candidates to Another Election

{% csrf_token %} {% if election_list %} Copy From: {% endif %}{# End of if election_list #} {# Default to showing only upcoming elections #}      {# Show offices which are either marquee or battleground #}      {% if state_list %} {% if state_code != "" %} show all {% endif %} {% endif %}{# End of if state_list #}     
{% if office_search %} clear search  {% endif %}      {# Show offices which have ctcl_uuid #}      {# Show offices which have vote_usa_office_id #}      {# #}     

{% if election_list %} Copy To: {% endif %}{# End of if election_list #} {% if to_google_civic_election_id and from_google_civic_election_id != to_google_civic_election_id %}      {% endif %}

{% if office_display_list %} {% if google_civic_election_id %} {% endif %} {% endif %}
{# End of organization_position_choose_election form #} {% if office_display_list %}
{% csrf_token %}
{% if election_shown_name %}
Election Shown: {{ election_shown_name }}
{% endif %} {# Pass along the url_variables this page is using, so we can return to the same page state #} {% for office in office_display_list %} {% if forloop.counter == 1 or forloop.counter|divisibleby:16 %} {# Show the header every ~15 lines #} {% if google_civic_election_id == 0 %} {% endif %} {% endif %} {% if google_civic_election_id == 0 %} {% endif %} {% for candidate in office.prior_candidate_list %} {% endfor %} {% endfor %}
  ID We Vote ID Office NameElectionState District # of Candidates Battleground IDs Select
{{ forloop.counter }} {{ office.id }} {{ office.we_vote_id }} edit  {{ office.office_name }} {% if office.district_name %}
{{ office.district_name|default_if_none:"" }}{% endif %}
{{ office.google_civic_election_id|default_if_none:"" }}{{ office.state_code }} {% if office.district_id %}{{ office.district_id|default_if_none:"" }}
{% endif %} {% if office.ballotpedia_district_id %}BP: {{ office.ballotpedia_district_id|default_if_none:"" }}
{% endif %}
{{ office.candidate_count }} {{ office.is_battleground_race|default_if_none:"" }} {% if office.ocd_division_id %}{{ office.ocd_division_id|default_if_none:"" }}
{% endif %} {% if office.ballotpedia_race_id %}BP Race Id: {{ office.ballotpedia_race_id|default_if_none:"" }}
{% endif %} {% if office.ballotpedia_office_id %}BP Office Id: {{ office.ballotpedia_office_id|default_if_none:"" }}
{% endif %} {% if office.ctcl_uuid %}CTCL: {{ office.ctcl_uuid|default_if_none:"" }}
{% endif %} {% if office.vote_usa_office_id %}Vote USA: {{ office.vote_usa_office_id|default_if_none:"" }}
{% endif %}
 
{% if candidate.candidate_photo_url %} {% else %}
 
{% endif %}
{{ candidate.candidate_name }} {% if candidate.withdrawn_from_election %}
Withdrew {% if candidate.withdrawal_date %}({{ candidate.withdrawal_date }}){% endif %} {% endif %} {% if candidate.do_not_display_on_ballot %}
Don't Display on Ballot {% endif %}
{{ candidate.we_vote_id }}
{{ candidate.political_party_display }} {% if candidate.ballotpedia_candidate_id %} {% if candidate.ballotpedia_candidate_url %} BP: {{ candidate.ballotpedia_candidate_id|default_if_none:"" }} {% else %} BP: {{ candidate.ballotpedia_candidate_id|default_if_none:"" }} {% endif %}
{% endif %} {% if candidate.vote_smart_id %} Vote Smart: {{ candidate.vote_smart_id|default_if_none:"" }}
{% endif %} {% if candidate.ctcl_uuid %}CTCL: {{ candidate.ctcl_uuid|default_if_none:"" }}
{% endif %} {% if candidate.vote_usa_politician_id %}{{ candidate.vote_usa_politician_id|default_if_none:"" }}
{% endif %}
WON PRIMARY

{#

Export Offices

#} {% else %}

(no offices found)

{% endif %} {% endblock %}