vendor/shopware/storefront/Resources/views/storefront/component/captcha/basicCaptchaFields.html.twig line 1

Open in your IDE?
  1. {% block component_basic_captcha_fields_title_input %}
  2.     <div id="{{ formId }}-basic-captcha-field">
  3.         {% if formViolations.getViolations("/#{constant('Shopware\\Storefront\\Framework\\Captcha\\BasicCaptcha::CAPTCHA_REQUEST_PARAMETER')}") is not empty %}
  4.             {% set violationPath = "/#{constant('Shopware\\Storefront\\Framework\\Captcha\\BasicCaptcha::CAPTCHA_REQUEST_PARAMETER')}" %}
  5.         {% endif %}
  6.         <input id="{{ formId }}-basic-captcha-input"
  7.                type="text"
  8.                class="form-control{% if violationPath %} is-invalid{% endif %}"
  9.                name="{{ constant('Shopware\\Storefront\\Framework\\Captcha\\BasicCaptcha::CAPTCHA_REQUEST_PARAMETER') }}"
  10.                required
  11.         >
  12.         <input type="text"
  13.                name="formId"
  14.                class="d-none"
  15.                value="{{ formId }}"
  16.         >
  17.         {% block component_basic_captcha_fields_error %}
  18.             {% if formViolations.getViolations("/#{constant('Shopware\\Storefront\\Framework\\Captcha\\BasicCaptcha::CAPTCHA_REQUEST_PARAMETER')}") is not empty %}
  19.                 {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' %}
  20.             {% endif %}
  21.         {% endblock %}
  22.     </div>
  23. {% endblock %}