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

Push Forms to Remote

{% if error %}

{{ error }}

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

Forms pushed successfully to {{ remote_name }}.

{% with r=push_result %}

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

{% if r.results %} {% for row in r.results %} {% endfor %}
SlugNameAction
{{ row.slug }} {{ row.name }} {% if row.action == "created" %}✓ Created {% elif row.action == "updated" %}↻ Updated {% else %}— Skipped{% endif %}
{% endif %} {% endwith %}
← Back to Form Definitions {# ── Step 1: Select forms to push (with diff status) ─────────────────── #} {% elif step == 1 %}

Select forms to push to {{ remote_name }}:

{% csrf_token %} {% for d in form_diffs %} {% if not d.is_new and not d.summary.identical %} {% endif %} {% endfor %}
Slug Name Status
{{ d.slug }} {{ d.name }} {% if d.is_new %} ✚ New {% elif d.summary.identical %} — No changes {% else %} ▸ {{ d.summary.diffs|length }} change{{ d.summary.diffs|length|pluralize }} {% endif %}
Cancel
{# ── Step 0: Pick remote ─────────────────────────────────────────────── #} {% else %}

Destination

{% csrf_token %}
{% if remotes %}

Configured via FORMS_SYNC_REMOTES in Django settings.


{% endif %}

Controls what happens when a form with the same slug already exists on the remote.

Cancel
{% endif %} {% endblock %}