{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}Pull Forms from Remote | {{ site_title|default:_('Django site admin') }}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %} {% include "admin/django_forms_workflows/_sync_diff.html" %}

Pull Forms from Remote

{% if error %}

{{ error }}

{% endif %} {# ── Step 2: Results ──────────────────────────────────────────────────── #} {% if step == 2 %}

Import Results

Created: {{ counts.created }}  |  Updated: {{ counts.updated }}  |  Skipped: {{ counts.skipped }}

{% for form_obj, action in results %} {% endfor %}
SlugNameAction
{{ form_obj.slug }} {{ form_obj.name }} {% if action == "created" %}✓ Created {% elif action == "updated" %}↻ Updated {% else %}— Skipped{% endif %}

← Back to Form Definitions {# ── Step 1: Choose forms to import ──────────────────────────────────── #} {% elif step == 1 %}

Connected to {{ remote_name }}. Select the forms you want to import:

{% if remote_forms %}
{% csrf_token %}
{% for form in remote_forms %} {% with slug=form.form.slug %} {% for d in form_diffs %}{% if d.slug == slug and not d.is_new and not d.summary.identical %} {% endif %}{% endfor %} {% endwith %} {% endfor %}
Slug Name Category Status
{{ slug }} {{ form.form.name }} {{ form.category.name|default:"—" }} {% for d in form_diffs %}{% if d.slug == slug %} {% if d.is_new %} ✚ New {% elif d.summary.identical %} — No changes {% else %} ▸ {{ d.summary.diffs|length }} change{{ d.summary.diffs|length|pluralize }} {% endif %} {% endif %}{% endfor %}
Cancel
{% else %}

No forms found on the remote instance.

← Try another remote {% endif %} {# ── Step 0: Remote picker ────────────────────────────────────────────── #} {% else %}

Choose a configured remote instance or enter a URL and token manually.

{% csrf_token %}
{% if remotes %}

Configured via FORMS_SYNC_REMOTES in Django settings.


{% endif %}
Cancel
{% endif %} {% endblock %}