{# templates/office/offices_held_for_location_list.html #} {% extends "template_base.html" %} {% block title %}Offices Held For Each Location{% endblock %} {% block content %}

Offices Held For Each Location

{% csrf_token %} {% if state_list %} {% if state_code != "" %} Show all Offices Held in this state {% endif %} {% endif %}

{% if location_search %} clear search  {% endif %} {# End of if state_list #} {% if location_list %} {% if google_civic_election_id %} {% endif %} {% endif %} {% if location_list %}
{% for offices_held_for_location in location_list %} {% endfor %}
  Location Offices Held
{{ forloop.counter }} {% if offices_held_for_location.polling_location_we_vote_id %} {{ offices_held_for_location.polling_location_we_vote_id|default_if_none:"" }} {% endif %} {{ offices_held_for_location.voter_we_vote_id|default_if_none:"" }}
{{ offices_held_for_location.state_code|default_if_none:"" }}
{% for office_held_pair in offices_held_for_location.office_held_pair_list %} {% if office_held_pair.office_held_we_vote_id_value %} {% include "office_held/office_held_name_and_we_vote_id_pair.html" with office_held_name_name=office_held_pair.office_held_name_name office_held_name_value=office_held_pair.office_held_name_value office_held_we_vote_id_name=office_held_pair.office_held_we_vote_id_name office_held_we_vote_id_value=office_held_pair.office_held_we_vote_id_value %} {% endif %} {% endfor %}

{#

Export Offices Held

#} {% else %}

(no locations found from OfficesHeldForLocation table)

{% endif %}
{% endblock %}