{% extends "sprout-base-import/_layouts/base" %} {% import "_includes/forms" as forms %} {% set title = 'Import' %} {% macro errorList(errors) %} {% if errors %} {% endif %} {% endmacro %} {% from _self import errorList %} {% block content %} {% if errors is defined and errors|length %}

{{ "Unable to process import"|t('sprout-import') }}

{{ errorList(errors) }}

{% endif %}
{{ csrfInput() }} {{ redirectInput("sprout-import") }} {{ forms.textareaField({ label: "Import via Copy/Paste"|t, instructions: "Paste JSON data to import."|t, name: 'importData', value: importData ?? null, errors: '', rows: 20, first: true }) }}

{{ 'Select one or more JSON encoded files to import.'|t('sprout-import') }}

{{ forms.lightswitchField({ label: "Seed data"|t('sprout-import'), instructions: "Mark your imported data as seed data. Seed data can be removed via the Weed tab."|t('sprout-import'), on: true, name: 'seed' }) }}
{% endblock %} {% block details %}

{{ "All aboard!"|t('sprout-import') }} {{ "If you need to import something that isn't supported, see our documentation on how to add custom integrations."|t('sprout-import') }}

{{ 'Sprout Import provides a flexible and extensible framework to import your content and settings into Craft. A list of supported data types for this Craft install are below. Third-party plugins can add support for additional data types.'|t('sprout-import')|raw }}

{{ "Supported Elements"|t('sprout-import') }}
{% set importers = craft.sproutImport.getSproutImportImporters() %}
{{ "Supported Settings"|t('sprout-import') }}
{% set sproutFormsIsInstalled = craft.sproutImport.isPluginInstalled('sproutforms') %} {% set sproutEmailIsInstalled = craft.sproutImport.isPluginInstalled('sproutemail') %} {% set sproutSeoIsInstalled = craft.sproutImport.isPluginInstalled('sproutseo') %} {% set sproutFieldsIsInstalled = craft.sproutImport.isPluginInstalled('sproutfields') %} {% if sproutFieldsIsInstalled or sproutFormsIsInstalled or sproutEmailIsInstalled or sproutSeoIsInstalled %}

{{ "Additional Sprout Integrations"|t('sprout-import') }}
{% if sproutFormsIsInstalled %}

Sprout Forms – Import Contact Forms, Landing Page Forms, Feedback Forms, Surveys, and more. Generate fake Form Entries to test your workflows.

{% endif %} {% if sproutEmailIsInstalled %}

Sprout Email – Import Email Templates to use for Newsletters, Marketing, Announcements, Notifications, and more.

{% endif %} {% if sproutSeoIsInstalled %}

Sprout SEO – Migrate your Meta Data and import and manage Redirects in bulk.

{% endif %} {% if sproutFieldsIsInstalled %}

Sprout Fields – Import content and generate fake data with custom fields for Email Addresses, Phone Numbers, and Links.

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