themes/BootstrapTheme/templates/bundles/CHCookieConsentBundle/cookie_consent.html.twig line 1

Open in your IDE?
  1. {% form_theme form '@CHCookieConsent/form/cookie_consent_theme.html.twig' %}
  2. <div class="ch-cookie-consent ch-cookie-consent--{{ theme }}-theme ch-cookie-consent--{{ position }} {% if simplified %}ch-cookie-consent--simplified{% endif %} {% if chcookieconsent_isCookieConsentSavedByUser() == true %}d-none{% endif %}">
  3.     {% block title %}
  4.         <h3 class="ch-cookie-consent__title">{{ 'ch_cookie_consent.title'|trans({}, 'CHCookieConsentBundle') }}</h3>
  5.     {% endblock %}
  6.     {% block intro %}
  7.         <p class="ch-cookie-consent__intro">{{ 'ch_cookie_consent.intro'|trans({}, 'CHCookieConsentBundle') }}</p>
  8.     {% endblock %}
  9.     {{ form_start(form, {'attr': {'class': 'ch-cookie-consent__form'}}) }}
  10.         <div class="ch-cookie-consent__category-group mb-4" style="display:none">
  11.             {% for child in form %}
  12.                 {% if child.vars.block_prefixes[0] != 'button' %}
  13.                     {{ form_row(child) }}
  14.                 {% endif %}
  15.             {% endfor %}
  16.         </div>
  17.         <div class="loading-overlay "></div>
  18.         <div class="ch-cookie-consent__btn-group">
  19.             {{ form_rest(form) }}
  20.             {% block toggle_details %}
  21.                 <div class="ch-cookie-consent__toggle-details-grp">
  22.                     <span class="ch-cookie-consent__toggle-details-show">{{ 'ch_cookie_consent.show_details'|trans({}, 'CHCookieConsentBundle') }}</span>
  23.                     <span class="ch-cookie-consent__toggle-details-hide">{{ 'ch_cookie_consent.hide_details'|trans({}, 'CHCookieConsentBundle') }}</span>
  24.                 </div>
  25.             {% endblock %}
  26.         </div>
  27.         
  28.         <button id="cookie_consent_use_only_functional_cookies" name="cookie_consent[save]" class="ch-cookie-consent__btn ch-cookie-consent__btn_no_bg p-0">{{ 'app.cookie.continue_without_accept'|trans }}</button>
  29.     {{ form_end(form) }}
  30. </div>