{% extends "wagtailadmin/base.html" %} {% load i18n %} {% load l10n %} {% load wagtailadmin_tags wagtailimages_tags static %} {% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Boundary Loader {{ title }} {% endblocktrans %}{% endblock %} {% block extra_css %} {{ block.super }} {{ form_media.css }} {% endblock %} {% block content %} {% trans "Boundary Loader" as header_str %} {% include "wagtailadmin/shared/header.html" with title=header_str icon="upload" %}
{% if country %}

Country Selected: {{ country.name }}

Update region
{% if existing_countries %}
We found existing boundary data..

The following country boundary data exists in the database:

Do you want to remove the existing boundary data and upload new ?

No, looks good
{% endif %}
{% if existing_countries %}

New boundary data

{% endif %}
You can download country specific boundary data from https://gadm.org/download_country.html in Geopackage format
{% if form.non_field_errors %}
{% include "wagtailadmin/shared/non_field_errors.html" with form=form %}
{% endif %}
    {% csrf_token %} {% for field in form %} {% if field.is_hidden %} {{ field }} {% else %} {% include "wagtailadmin/shared/field_as_li.html" %} {% endif %} {% endfor %}
{% else %}

You have not set up any region in Geo Manager Settings.

To upload boundary data, the region needs to be set first.

Please set up a region/country and try again

Set region now
{% endif %} {% endblock %} {% block extra_js %} {{ block.super }} {{ form_media.js }} {% endblock %}