{#** * 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) *#} {# Extend form_row template to move the form_alert behind the label #} {%- block employee_options_row -%} {% apply spaceless %} {# In horizontal theme when using a title for label it needs to be outside of the row div #} {% if label_tag_name is defined %} {{ form_label(form) }} {% endif %} {% import '@PrestaShop/Admin/macros.html.twig' as ps %} {% set disabledField = false %} {% if form.vars.attr.disabled is defined and form.vars.attr.disabled %} {% set disabledField = true %} {% endif %}
{% set multistoreCheckboxName = multistore_field_prefix ~ form.vars.name %} {% if attribute(form.parent, multistoreCheckboxName) is defined %} {{ form_errors(attribute(form.parent, multistoreCheckboxName)) }} {{ form_widget(attribute(form.parent, multistoreCheckboxName)) }} {% endif %} {% if label_tag_name is not defined %} {{ form_label(form) }} {% endif %}
{{ form_widget(form) }} {# #} {{ form_errors(form, {'attr': {'fieldError': true}}) }} {{- block('form_alert') -}}
{% if attribute(form.parent, form.vars.name) is defined and attribute(form.parent, form.vars.name).vars.multistore_dropdown != false %} {{ attribute(form.parent, form.vars.name).vars.multistore_dropdown | raw }} {% endif %} {{- block('form_external_link') -}}
{% endapply %} {% if column_breaker %}
{% endif %} {%- endblock employee_options_row -%} {# Override form_alert template to add a class #} {%- block form_alert -%} {% if alert_message is defined %} {% endif %} {%- endblock form_alert -%}