{% sw_extends '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-privacy.html.twig' %}
{% block cms_form_privacy_opt_in %}
{% set identifierTemplate = 'form-privacy-opt-in-%s' %}
{% if requiresTermsOfService is not defined %}
{% set requiresTermsOfService = true %}
{% endif %}
<div class="form-text py-5 text-sm privacy-notice wysiwyg {{ formCheckboxWrapperClass }}">
{% block cms_form_privacy_opt_in_input %}
<input name="privacy"
type="checkbox"
class="{{ formCheckInputClass }}"
id="{{ identifierTemplate|format(_key) }}"
required>
{% endblock %}
{% block cms_form_privacy_opt_in_label %}
<label for="{{ identifierTemplate|format(_key) }}" class="{{ formCheckLabelClass }}">
{% if requiresTermsOfService == true %}
{# @deprecated tag:v6.5.0 - Translation parameter %url% will be removed, use %privacyUrl% and %tosUrl% instead #}
{{ "general.privacyNotice"|trans({
'%url%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
'%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') }),
'%tosUrl%': path('frontend.cms.page', { id: config('core.basicInformation.tosPage')} )
})|raw }}
{% else %}
{{ "contact.privacyNotice"|trans({
'%privacyUrl%': path('frontend.cms.page', { id: config('core.basicInformation.privacyPage') })
})|raw }}
{% endif %}
</label>
{% endblock %}
</div>
{% endblock %}