{# 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
| 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
| 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 %} |
(no office found)
{% endif %} {# ########################### #} {# ### ADD CANDIDATE TOOLS ### #} {% if 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.
{% endif %} {% endif %} {# ### END OF ADD CANDIDATE TOOLS ### #} {# ################################## #} {# ############################ #} {# ### OFFICE MERGING TOOLS ### #} {% if office %}
{% endblock %}