{% extends "admin/change_form.html" %} {% load adminmedia %} {% block title %}Pick Shapefile Layer to Import{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

Pick Shapefile Layer to Import Locations From

{% csrf_token %} {% include "admin/includes/fieldset.html" %} {% if not layers %}
  • No layers?
  • {% else %}

    Filter out locations outside our default bounding box?

    Select which layer you'd like to import.

      {% for layer in layers %}
    1. {% if layer.num_feat and layer.0.num_fields %} {% endif %} {{ layer.name }} ({{ layer.num_feat }} {{ layer.geom_type.name|lower }}{{layer.num_feat|pluralize}}): {% if layer.num_feat %} {% if layer.num_fields %}

      Use which field for Location name? (If none of these look suitable, you may have to hand-edit the Location names after import; just pick one.)

        {% for field in layer.0 %}
      1. {{ field.name }} (example: {{ field.value }})
      2. {% endfor %}
      {% else %}
      Can't use this layer; its features have no fields, so there's no way to assign names to imported locations.
      {% endif %} {% else %}
      Can't use this layer; it has no features we can import.
      {% endif %}
    2. {% endfor %}
    {% endif %}
    {% endblock %}