{#** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *#} {% trans_default_domain 'Admin.Advparameters.Feature' %} {% form_theme importForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %} {% block import_form %} {{ form_start(importForm, {'attr': { 'data-file-upload-url': importFileUploadUrl, 'data-delete-confirm-message': ('Are you sure you want to delete this entity:'|trans({}, 'Admin.Advparameters.Notification')), 'class': 'js-import-form' }}) }}

import_export {{ 'Import'|trans({}, 'Admin.Actions') }}


{{ form_row(importForm.entity) }}

{{ form_errors(importForm.csv) }} {{ form_widget(importForm.csv, {'attr': {'class': 'js-import-file-input'}}) }}
{{ form_label(importForm.file) }}
{{ form_errors(importForm.file) }} {{ form_widget(importForm.file, {'attr': {'class': 'js-import-file', 'data-max-file-upload-size': maxFileUploadSize }}) }}
{{ 'or'|trans({}, 'Admin.Global') }}
{{ 'Allowed formats: .csv, .xls, .xlsx, .xlst, .ods, .ots'|trans({}, 'Admin.Advparameters.Help') }} {{ 'Only UTF-8 and ISO 8859-1 encodings are allowed'|trans({}, 'Admin.Advparameters.Help') }} {{ 'You can also upload your file via FTP to the following directory: %s .'|trans({'%s': importDirectory}, 'Admin.Advparameters.Help') }}
{% block import_file_history_block %} {% include '@PrestaShop/Admin/Configure/AdvancedParameters/Blocks/import_file_history.html.twig' %} {% endblock %}
{{ form_row(importForm.iso_lang) }} {{ form_row(importForm.separator) }} {{ form_row(importForm.multiple_value_separator) }}
{{ form_label(importForm.submitImportFile) }} {# This is done so importForm.submitImportFile is not rendered, as it's defined via plain HTML instead #} {% do importForm.submitImportFile.setRendered %} {{ form_widget(importForm) }}
{{ form_end(importForm) }} {% endblock %}