custom/plugins/ThemeOkeonline/src/Resources/views/storefront/component/address/address-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@parent/storefront/component/address/address-form.html.twig' %}
  2. {% block component_address_form %}
  3.     <div data-oo-postcodefix>
  4.         {{ parent() }}
  5.     </div>
  6. {% endblock %}
  7. {# Add missing class 'is-invalid' #}
  8. {% block component_address_form_phone_number_input %}
  9.     {% if formViolations.getViolations("/phoneNumber") is not empty %}
  10.         {% set violationPath = "/phoneNumber" %}
  11.     {% elseif formViolations.getViolations("/#{prefix}/phoneNumber") is not empty %}
  12.         {% set violationPath = "/#{prefix}/phoneNumber" %}
  13.     {% endif %}
  14.     <input type="text"
  15.             class="form-control {% if violationPath %} is-invalid{% endif %}"
  16.             id="{{ idPrefix ~ prefix }}AddressPhoneNumber"
  17.             placeholder="{{ "address.phoneNumberPlaceholder"|trans|striptags }}"
  18.             name="{{ prefix }}[phoneNumber]"
  19.             value="{{ data.get('phoneNumber') }}"
  20.         {{ config('core.loginRegistration.phoneNumberFieldRequired') ? 'required="true"' }}>
  21. {% endblock %}