{% extends "wagtailadmin/base.html" %} {% load i18n %} {% load wagtailadmin_tags %} {% block titletag %}{% trans "Pull Forecasts from External Source" %}{% endblock %} {% block content %} {% trans "Pull Forecasts from External Source" as header_str %} {% include "wagtailadmin/shared/header.html" with title=header_str icon="download" %}
{% if enabled %}
{% blocktrans %} This fetches the latest forecasts for all cities from {{ provider }} and saves them to ClimWeb. This runs automatically on a schedule; use this button to trigger an extra pull on demand. The pull runs in the background, so you can leave this page — new forecasts appear on the listing once it finishes. {% endblocktrans %} {% if not auto_publish %}
{% trans "Auto-publish is off, so the pulled forecasts will be saved as drafts for review." %} {% endif %}
{% if running %}
{% trans "A forecast pull is already queued or running in the background. Please wait for it to finish before starting another." %}
{% endif %}
{% csrf_token %} {% trans "Cancel" %}
{% else %}
{% trans "Automated forecasts are disabled. Enable them under Forecast Settings > Forecast Source to pull from an external provider." %}
{% trans "Back to forecasts" %} {% endif %}
{% endblock %}