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

{{ office_held.office_held_name }}{% if office_held.district_id %} - District {{ office_held.district_id }}{% endif %}{% if office_held.state_code %} - {{ office_held.state_code }}{% endif %}

{% if office_held.district_name %} {% endif %} {% if office_held.office_held_twitter_handle %} {% endif %} {% if office_held.office_held_facebook_url %} {% endif %} {% if office_held.office_held_url %} {% endif %} {% if office_held.office_url %} {% endif %} {% if office_held.office_held_description %} {% endif %}
We Vote ID: {{ office_held.we_vote_id }} (delete office)
District Name: {{ office_held.district_name }}
OCD Division ID: {{ office_held.ocd_division_id }}
District ID: {{ office_held.district_id }}
Twitter Handle: {{ office_held.office_held_twitter_handle }} 
Facebook: {{ office_held.office_held_facebook_url }} 
Website: {{ office_held.office_held_url }} 
Years with Data: {% if office_held.year_with_data_2023 %}2023 {% endif %} {% if office_held.year_with_data_2024 %}2024 {% endif %} {% if office_held.year_with_data_2025 %}2025 {% endif %} {% if office_held.year_with_data_2026 %}2026 {% endif %}
Is Battleground Race: {% if office_held.is_battleground_race_2019 %}2019 {% endif %} {% if office_held.is_battleground_race_2020 %}2020 {% endif %} {% if office_held.is_battleground_race_2021 %}2021 {% endif %} {% if office_held.is_battleground_race_2022 %}2022 {% endif %} {% if office_held.is_battleground_race_2023 %}2023 {% endif %} {% if office_held.is_battleground_race_2024 %}2024 {% endif %} {% if office_held.is_battleground_race_2025 %}2025 {% endif %} {% if office_held.is_battleground_race_2026 %}2026 {% endif %}
Office Held Website: {{ office_held.office_url }}
Office Held Description: {{ office_held.office_held_description }}


edit

{% for representative in representative_list %} {% endfor %}
    Representative Name Party State Twitter Handle Ids Website(s)  
{{ forloop.counter }} {% if representative.we_vote_hosted_profile_image_url_medium %} {% endif %} {{ representative.representative_name }} 
In office: {% if representative.year_in_office_2023 %}2023 {% endif %} {% if representative.year_in_office_2024 %}2024 {% endif %} {% if representative.year_in_office_2025 %}2025 {% endif %} {% if representative.year_in_office_2026 %}2026 {% endif %}
{{ representative.political_party|default_if_none:"" }} {{ representative.state_code|default_if_none:"" }} {% if representative.representative_twitter_handle %}{{ representative.representative_twitter_handle }} 
({{ representative.twitter_followers_count|intcomma }} followers){% endif %}
{% if representative.we_vote_id %}{{ representative.we_vote_id|default_if_none:"" }}
{% endif %} {% if representative.office_held_we_vote_id %}{{ representative.office_held_we_vote_id|default_if_none:"" }}
{% endif %} {% if representative.politician_we_vote_id %}{{ representative.politician_we_vote_id|default_if_none:"" }}
{% endif %} {% if representative.ctcl_uuid %}CTCL: {{ representative.ctcl_uuid|default_if_none:"" }}{% endif %}
{% if representative.representative_url %}{{ representative.representative_url }} 
{% endif %} {% if representative.representative_url2 %}{{ representative.representative_url2 }} 
{% endif %} {% if representative.representative_url3 %}{{ representative.representative_url3 }} 
{% endif %} {% if representative.wikipedia_url %}{{ representative.wikipedia_url }} {% endif %}
(edit)

{% else %}

(no Office Held found)

{% endif %} {% endblock %}