custom/static-plugins/NdVoorwindenTheme/src/Resources/views/storefront/element/cms-element-form/form-components/cms-element-form-privacy.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-privacy.html.twig' %}
  2. {% block cms_form_privacy_opt_in %}
  3.     {% set identifierTemplate = 'form-privacy-opt-in-%s' %}
  4.     {% if requiresTermsOfService is not defined %}
  5.         {% set requiresTermsOfService = true %}
  6.     {% endif %}
  7.     <div class="form-text py-5 text-sm privacy-notice wysiwyg {{ formCheckboxWrapperClass }}">
  8.         {% block cms_form_privacy_opt_in_input %}
  9.             <input name="privacy"
  10.                    type="checkbox"
  11.                    class="{{ formCheckInputClass }}"
  12.                    id="{{ identifierTemplate|format(_key) }}"
  13.                    required>
  14.         {% endblock %}
  15.         {% block cms_form_privacy_opt_in_label %}
  16.             <label for="{{ identifierTemplate|format(_key) }}" class="{{ formCheckLabelClass }}">
  17.                 {% if requiresTermsOfService == true %}
  18.                     {# @deprecated tag:v6.5.0 - Translation parameter %url% will be removed, use %privacyUrl% and %tosUrl% instead #}
  19.                     {{ "general.privacyNotice"|trans({
  20.                         '%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
  21.                         '%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
  22.                         '%tosUrl%': path('frontend.cms.page', { id: config('core.basicInformation.tosPage')} )
  23.                     })|raw }}
  24.                 {% else %}
  25.                     {{ "contact.privacyNotice"|trans({
  26.                         '%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
  27.                     })|raw }}
  28.                 {% endif %}
  29.             </label>
  30.         {% endblock %}
  31.     </div>
  32. {% endblock %}