vendor/shopware/storefront/Resources/views/storefront/component/address/address-personal-vat-id.html.twig line 1

Open in your IDE?
  1. {% block component_account_register_personal_vat_id_field %}
  2.     {% if formViolations.getViolations("/vatIds") is not empty %}
  3.         {% set violationPath = "/vatIds" %}
  4.     {% endif %}
  5.     {% block component_address_form_company_vatId_label %}
  6.         <label class="form-label"
  7.                for="vatIds">
  8.             {{ "address.companyVatLabel"|trans|sw_sanitize }}
  9.         </label>
  10.     {% endblock %}
  11.     {% block component_address_form_company_vatId_input %}
  12.         <input type="text"
  13.                class="form-control{% if violationPath %} is-invalid{% endif %}"
  14.                id="vatIds"
  15.                placeholder="{{ "address.companyVatPlaceholder"|trans|striptags }}"
  16.                name="vatIds[]"
  17.                value="{{ activeRoute == 'frontend.account.profile.page' or (feature('FEATURE_NEXT_15957') and activeRoute == 'frontend.account.addressbook' and context.customer.guest) ? vatIds[0] : vatIds.get(0) }}">
  18.     {% endblock %}
  19.     {% block component_address_form_company_vatId_input_error %}
  20.         {% if violationPath %}
  21.             {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' %}
  22.         {% endif %}
  23.     {% endblock %}
  24. {% endblock %}