{# templates/office/office_summary.html #} {% extends "template_base.html" %} {% block title %}{% if office %}{{ office.office_name }} {% if office.district_id %} - District {{ office.district_id }} {% endif %} {% if office.state_code %} - {{ office.state_code }} {% endif %} Summary{% else %}No Office Found{% endif %}{% endblock %} {% block content %} {% load humanize %} {% if office %} < Back to Offices

{{ office.office_name }}

{% if office.district_id or office.state_code %} {% endif %} {% if office.ballotpedia_office_name %} {% endif %} {% if office.office_url %} {% endif %} {% if office.ballotpedia_office_url %} {% endif %} {% if office.ballotpedia_race_office_level %} {% endif %} {% if office.google_ballot_placement %} {% endif %} {% if office.district_id %} {% endif %} {% if office.district_name %} {% endif %} {% if office.district_scope %} {% endif %} {% if office.number_elected %} {% endif %} {% if office.number_voting_for %} {% endif %} {% if office.ballotpedia_election_id %} {% endif %} {% if office.ballotpedia_office_url %} {% endif %} {% if office.ballotpedia_office_id %} {% endif %} {% if office.ballotpedia_district_id %} {% endif %} {% if office.ctcl_uuid %} {% endif %} {% if office.ocd_division_id %} {% endif %} {% if office.vote_usa_office_id %} {% endif %}
State/District: {% if office.state_code %} {{ office.state_code }} {% endif %}{% if office.district_id %} - District {{ office.district_id }}{% endif %}
Google Civic Election ID: {{ election.election_name }} - {{ office.google_civic_election_id }}, {{ election.election_day_text }}
Office We Vote ID: {{ office.we_vote_id }} (delete office)
Office Held We Vote ID: {{ office.office_held_we_vote_id }}
Google Civic Name: 1) {{ office.google_civic_office_name|default_if_none:"" }} {% if office.google_civic_office_name2 %}
2) {{ office.google_civic_office_name2|default_if_none:"" }}{% endif %} {% if office.google_civic_office_name3 %}
3) {{ office.google_civic_office_name3|default_if_none:"" }}{% endif %} {% if office.google_civic_office_name4 %}
4) {{ office.google_civic_office_name4|default_if_none:"" }}{% endif %} {% if office.google_civic_office_name5 %}
5) {{ office.google_civic_office_name5|default_if_none:"" }}{% endif %}
Ballotpedia Office Name: {{ office.ballotpedia_office_name }}
Office Website: {{ office.office_url }}
Is Marquee? :: Is Battleground? {{ office.ballotpedia_is_marquee|default_if_none:"No" }} :: {{ office.is_battleground_race|default_if_none:"No" }}
Ballotpedia Office URL: {{ office.ballotpedia_office_url|default_if_none:"" }}
Race Office Level: {{ office.ballotpedia_race_office_level|default_if_none:"" }}
Google Ballot Placement: {{ office.google_ballot_placement|default_if_none:"" }}
District ID: {{ office.district_id|default_if_none:"" }}
District Name: {{ office.district_name|default_if_none:"" }}
District Scope: {{ office.district_scope|default_if_none:"" }}
Number Elected: {{ office.number_elected|default_if_none:"" }}
Number Voting For: {{ office.number_voting_for|default_if_none:"" }}
Ballotpedia Election ID: {{ office.ballotpedia_election_id|default_if_none:"" }}
Ballotpedia Office URL: {{ office.ballotpedia_race_id|default_if_none:"" }}
Ballotpedia Office Held ID: {{ office.ballotpedia_office_id|default_if_none:"" }}
Ballotpedia District ID: {{ office.ballotpedia_district_id|default_if_none:"" }}
CTCL UUID: {{ office.ctcl_uuid|default_if_none:"" }}
OCD Division ID: {{ office.ocd_division_id|default_if_none:"" }}
Vote Office USA ID: {{ office.vote_usa_office_id|default_if_none:"" }}


Edit this Office

Add New Candidate, Refresh Positions

{% for candidate in candidate_list %} {% endfor %}
    Candidate Name Party Support Oppose % Support Twitter Handle Website We Vote Id State IDs
{{ forloop.counter }} {% if candidate.candidate_photo_url %}
{% endif %} (edit)
{{ candidate.candidate_name }} {% if candidate.withdrawn_from_election %} WITHDRAWN {% endif %} {% if candidate.do_not_display_on_ballot %} DON'T SHOW {% endif %} {{ candidate.party }} {{ candidate.support_count }} {{ candidate.oppose_count }} {% if candidate.percentage_of_support %}{{ candidate.percentage_of_support }}%{% endif %} {% if candidate.candidate_twitter_handle %}{{ candidate.candidate_twitter_handle }}
({{ candidate.twitter_followers_count|intcomma }} followers){% endif %}
{% if candidate.candidate_url %}{{ candidate.candidate_url }}
{% endif %} {% if candidate.candidate_contact_form_url %}{{ candidate.candidate_contact_form_url }}
{% endif %} {% if candidate.facebook_url %}{{ candidate.facebook_url }}
{% endif %} {% if candidate.candidate_email %}{{ candidate.candidate_email }}{% endif %}
{{ candidate.we_vote_id }}
{% if candidate.politician_we_vote_id %} {{ candidate.politician_we_vote_id }} {% else %} politician missing {% endif %}
{{ candidate.get_candidate_state }} {% if candidate.ballotpedia_candidate_id %} {% if candidate.ballotpedia_candidate_url %} BP: {{ candidate.ballotpedia_candidate_id|default_if_none:"" }} {% else %} BP Candidate: {{ candidate.ballotpedia_candidate_id|default_if_none:"" }} {% endif %}
{% endif %} {% if candidate.ballotpedia_person_id %}BP Person: {{ candidate.ballotpedia_person_id|default_if_none:"" }}
{% endif %} {% if candidate.ballotpedia_office_id %}BP Office: {{ candidate.ballotpedia_office_id|default_if_none:"" }}
{% endif %} {% if candidate.ballotpedia_race_id %}BP Race: {{ candidate.ballotpedia_race_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 %} {% if candidate.vote_usa_office_id %}{{ candidate.vote_usa_office_id|default_if_none:"" }}
{% endif %} {% if candidate.vote_smart_id %} Vote Smart: {{ candidate.vote_smart_id|default_if_none:"" }}
{% endif %}

{% else %}

(no office found)

{% endif %} {# ########################### #} {# ### ADD CANDIDATE TOOLS ### #} {% if office %}

Add Candidates Running for this Office

Enter one or more candidate names who are running for this office, and aren't listed above. Each name should be on its own line.

{% csrf_token %}
{% if not search_result_options_list %} {% endif %} {% if candidate_possibility_search %}    clear search  {% endif %}
{% if search_result_options_list %} {% for search_result_option in search_result_options_list %} {% endfor %} {% if search_result_options_list %} {% endif %}
{{ forloop.counter }} {% for one_candidate in search_result_option.candidate_list %} {% endfor %} {% for one_politician in search_result_option.politician_list %} {% endfor %} {% if not search_result_option.candidate_name_already_linked %} {% endif %}
{% if search_result_option.candidate_name_to_search %} {{ search_result_option.candidate_name_to_search }} {% else %} NAME MISSING {% endif %} We Vote ID State Code Personal Statement
{% if search_result_option.candidate_name_already_linked %} ALREADY LINKED {% elif search_result_option.candidate_name_created %} CANDIDATE CREATED BUT NOT LINKED {% else %} {% endif %} {% if one_candidate.we_vote_hosted_profile_image_url_tiny %} {% endif %} {{ one_candidate.candidate_name }}  (candidate) {{ one_candidate.we_vote_id }} {{ one_candidate.state_code }} {{ one_candidate.display_personal_statement }}
{% if one_politician.we_vote_hosted_profile_image_url_tiny %} {% endif %} {{ one_politician.politician_name }}  (politician) {{ one_politician.we_vote_id }} {{ one_politician.state_code }} {{ one_politician.display_personal_statement }}
{{ search_result_option.candidate_name_to_search }}
{% endif %} {% endif %} {# ### END OF ADD CANDIDATE TOOLS ### #} {# ################################## #} {# ############################ #} {# ### OFFICE MERGING TOOLS ### #} {% if office %}

Merge with Another Office

{% csrf_token %} {% if office_search_results_list %}
{% endif %} {% if office_search %} clear search  {% endif %} {% if office_search_results_list %} {% for found_office in office_search_results_list %} {% endfor %}
  Office Name State We Vote ID Candidates Other IDs all
{{ forloop.counter }} {% if found_office.candidates_match_root_office %} {{ found_office.office_name }} {% else %} {{ found_office.office_name }} {% endif %}
(view summary, compare for merge)
{{ found_office.state_code }} {{ found_office.we_vote_id }} {% if found_office.not_a_duplicate %}
NOT DUPLICATE{% endif %}
{% if found_office.candidates_match_root_office %} {{ found_office.candidates_string }} {% else %} {{ found_office.candidates_string }} {% endif %} {% if found_office.ctcl_uuid %}CTCL: {{ found_office.ctcl_uuid|default_if_none:"" }}
{% endif %} {% if found_office.vote_usa_office_id %}Vote USA: {{ found_office.vote_usa_office_id|default_if_none:"" }}
{% endif %} {% if found_office.ballotpedia_race_id %}BP Race: {{ found_office.ballotpedia_race_id|default_if_none:"" }}
{% endif %} {% if found_office.ballotpedia_office_id %}BP Office: {{ found_office.ballotpedia_office_id|default_if_none:"" }}
{% endif %} {% if found_office.district_name %}District Name: {{ found_office.district_name|default_if_none:"" }}
{% endif %}
{% endif %} {% endif %} {# ### END OF OFFICE MERGING TOOLS ### #} {# ################################### #}

 

 

 

 

{% endblock %}