{# templates/electoral_district/electoral_district_list.html #} {% extends "template_base.html" %} {% block title %}{% if state_code%}{{ state_code }} {% endif %}Electoral Districts{% if polling_location_we_vote_id %} for Map Point {{ polling_location_we_vote_id }} {% endif %}{% endblock %} {% block content %}

{% if state_code %}{{ state_code }} {% endif %}Electoral Districts{% if polling_location_we_vote_id %} for Map Point {{ polling_location_we_vote_id }} {% endif %}

Refresh Ballotpedia Districts for "{{ state_code }}"
{% csrf_token %} {% if state_list %} {% endif %}{# End of if state_list #} {% if electoral_district_search or issues_selected %} clear search  {% endif %}     {% if polling_location_we_vote_id %} clear map point  {% endif %}
{% if electoral_district_list %} {% for electoral_district in electoral_district_list %} {% endfor %}
Name Ballotpedia District Id Type (Google / Ballotpedia) State we_vote_id lat/long
{{ forloop.counter }} {% if electoral_district.electoral_district_name %}{{ electoral_district.electoral_district_name }}{% else %}(missing electoral district name)  {% endif %} {% if electoral_district.ballotpedia_district_url %} {{ electoral_district.ballotpedia_district_id|default_if_none:"" }} {% else %} {{ electoral_district.ballotpedia_district_id|default_if_none:"" }} {% endif %} {{ electoral_district.electoral_district_type|default_if_none:"" }} / {{ electoral_district.ballotpedia_district_type|default_if_none:"" }} {{ electoral_district.state_code|default_if_none:""|upper }} {% if electoral_district.we_vote_id %}   {{ electoral_district.we_vote_id }}{% endif %} {% if electoral_district.ballotpedia_district_latitude %}  Lat/Long: yes{% endif %}
{% if show_all %} show fewer {% else %} show all {% endif %} {% else %}

(no electoral_districts found)

{% endif %}
{% endblock %}