{#** * 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) *#} {% form_theme currencyForm 'PrestaShopBundle:Admin/TwigTemplateForm:prestashop_ui_kit.html.twig' %} {% block form %} {{ form_start(currencyForm, { 'attr': { 'id': 'currency_form', 'data-reference-url': path('admin_currencies_get_reference_data', {'currencyIsoCode': 'CURRENCY_ISO_CODE'})|replace({'/CURRENCY_ISO_CODE': '{/id}'}), 'data-languages': languages|json_encode, 'data-translations': { 'step.symbol': '1. Enter symbol'|trans({}, 'Admin.International.Feature'), 'step.format': '2. Choose format'|trans({}, 'Admin.International.Feature'), 'modal.title': 'Customize symbol and format'|trans({}, 'Admin.International.Feature'), 'modal.apply': 'Apply'|trans({}, 'Admin.Actions'), 'modal.cancel': 'Cancel'|trans({}, 'Admin.Actions'), 'modal.close': 'Close'|trans({}, 'Admin.Actions'), 'list.language': 'Language'|trans({}, 'Admin.Global'), 'list.example': 'Example'|trans({}, 'Admin.Global'), 'list.edit': 'Edit symbol / format'|trans({}, 'Admin.International.Feature'), 'list.reset': 'Reset'|trans({}, 'Admin.Actions'), 'list.reset.success': 'Your symbol and format customizations have been successfully reset for this language.'|trans({}, 'Admin.Notifications.Success'), 'list.example.format': '%price%'|trans({}, 'Admin.International.Feature'), 'modal.restore.title': 'Are you sure you want to restore default settings?'|trans({}, 'Admin.International.Feature'), 'modal.restore.apply': 'Restore'|trans({}, 'Admin.Actions'), 'modal.restore.cancel': 'Cancel'|trans({}, 'Admin.Actions'), 'modal.restore.body': 'Restoring your currency\'s default settings will delete all the customizations you made before. Parameters will look just the same as when the currency is freshly imported.'|trans({}, 'Admin.International.Feature') }|json_encode } }) }}
{{ 'Currencies'|trans({}, 'Admin.Global') }}
{{ form_errors(currencyForm) }} {% if not currencyForm.vars.data.id is defined %} {{ form_row(currencyForm.selected_iso_code) }}
{{ form_widget(currencyForm.unofficial) }}
{% endif %} {{ form_row(currencyForm.names) }} {% set symbolsClass = currencyForm.symbols.vars.errors|length ? '' : 'd-none' %} {{ form_row(currencyForm.symbols, {'row_attr': {'class': symbolsClass}}) }} {{ form_widget(currencyForm) }}
{{ form_end(currencyForm) }} {% if languageDataError is defined and languageDataError %}
{{ 'Could not display symbol and format customization:'|trans({}, 'Admin.International.Notification') }} {{ languageDataError }}
{% else %} {% endif %} {% endblock %}