{% extends "sprout-base-import/_layouts/base" %}
{% import "_includes/forms" as forms %}
{% set title = 'Import' %}
{% macro errorList(errors) %}
{% if errors %}
{% for categorizedErrors in errors %}
{% for error in categorizedErrors %}
{{ error }}
{% endfor %}
{% endfor %}
{% 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 %}
{% 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() %}
{% for importer in importers if importer.isElement() %}
{% set importerName = importer.getName() %}
{{ importerName }}
{% endfor %}
{{ "Supported Settings"|t('sprout-import') }}
{% for importer in importers if importer.isSettings() %}
{{ importer.getName() }}
{% endfor %}
{% 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 %}