{# templates/office/office_list.html #} {% extends "template_base.html" %} {% block title %}Office Contests{% endblock %} {% block content %}

Office Contests

Import New Offices

Add New Office

Refresh Positions from Contest Office info for this election, Fix District IDs

{% csrf_token %} {% if election_list %} {% 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 office_list %} {% if google_civic_election_id %} {% endif %} {% endif %}
{# End of organization_position_choose_election form #} {% if office_list %}
{% csrf_token %}
{# Pass along the url_variables this page is using, so we can return to the same page state #} {% for office in office_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 %} {% endfor %}
  ID We Vote ID Office NameElectionState District # of Candidates Public Positions IDs Select
{{ forloop.counter }} {{ office.id }} {{ office.we_vote_id }} edit  {% if office.office_held_we_vote_id %}
{{ office.office_held_we_vote_id|default_if_none:"" }} {% endif %}
{{ office.office_name }} {% if office.district_name %}
{{ office.district_name|default_if_none:"" }}{% endif %} {% if office.is_battleground_race %}
Battleground{% endif %}
{{ office.google_civic_election_id|default_if_none:"" }}
{{ office.get_election_day_text|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.positions_count }} {% 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 %}

{#

Export Offices

#} {% else %}

(no offices found)

{% endif %} {% endblock %}