{% import '@OroUI/macros.html.twig' as UI %}
{% if consents is defined %} {% for consentWithAcceptance in consents %} {% if (consentWithAcceptance.landingPage) %} {{ UI.renderHtmlProperty( consentWithAcceptance.consent.getDefaultName, UI.entityViewLink( consentWithAcceptance.landingPage, (consentWithAcceptance.accepted) ? 'oro.consent.customer_user.accepted.label'|trans : 'oro.consent.customer_user.not_accepted.label'|trans, 'oro_cms_page_view' ) ) }} {% else %} {{ UI.renderProperty( consentWithAcceptance.consent.getDefaultName, (consentWithAcceptance.accepted) ? 'oro.consent.customer_user.accepted.label'|trans : 'oro.consent.customer_user.not_accepted.label'|trans ) }} {% endif %} {% endfor %} {% endif %}