{% import '_includes/forms' as forms %} {% import 'verbb-base/_macros' as macros %} {% extends 'formie/_layouts/settings' %} {% set bodyClass = 'formie-settings-migrate' %} {% set selectedTab = 'migrate/sprout-forms' %} {% set fullPageForm = outputs is not defined %} {% block actionButton %} {% if outputs is not defined %} {% endif %} {% endblock %} {% block content %} {{ actionInput('formie/migrations/sprout-forms') }} {{ redirectInput('formie/settings/sprout-forms') }}

{{ 'Migrate Sprout Forms' | t('formie') }}

{% if outputs is not defined %}

{{ 'Select the forms you wish to migrate from Sprout Forms. This will migrate all fields within the form, all settings (where applicable), notifications, and any Form Entries. Depending on how many entries the selected forms have, this could take some time.' | t('formie') }}

{{ 'Your original Sprout Forms will remain un-touched.' | t('formie') }}

{% endif %}
{% if outputs is defined %} {% for formId, output in outputs %}

{{ craft.sproutForms.formById(formId).name }}

{{ output | raw }} {% endfor %}
{{ 'Done' | t('formie') }} {% else %} {% set forms = craft.sproutForms.getAllForms() %} {{ forms.checkboxSelectField({ label: 'Forms' | t('formie'), name: 'formIds', showAllOption: true, options: forms | map(form => { label: form.name, value: form.id, }), }) }} {% endif %} {% endblock %}