vendor/connectholland/cookie-consent-bundle/Resources/views/cookie_consent.html.twig line 1

Open in your IDE?
  1. {% form_theme form '@CHCookieConsent/form/cookie_consent_theme.html.twig' %}
  2. {% block script %}
  3.     <script type="text/javascript" src="{{ asset('bundles/chcookieconsent/js/cookie_consent.js') }}"></script>
  4. {% endblock %}
  5. <div class="ch-cookie-consent ch-cookie-consent--{{ theme }}-theme ch-cookie-consent--{{ position }} {% if simplified %}ch-cookie-consent--simplified{% endif %}">
  6.     {% block title %}
  7.         <h3 class="ch-cookie-consent__title">{{ 'ch_cookie_consent.title'|trans({}, 'CHCookieConsentBundle') }}</h3>
  8.     {% endblock %}
  9.     {% block intro %}
  10.         <p class="ch-cookie-consent__intro">{{ 'ch_cookie_consent.intro'|trans({}, 'CHCookieConsentBundle')|raw }} 
  11.         <a class="ch-cookie-consent__read-more" href="{{ path('donneesperso') }}">{{ 'ch_cookie_consent.read_more'|trans({}, 'CHCookieConsentBundle') }}</a>
  12.         </p>
  13.     {% endblock %}
  14.     {% block read_more %}
  15.         
  16.     {% endblock %}
  17.     {{ form_start(form, {'attr': {'class': 'ch-cookie-consent__form'}}) }}
  18.         <div class="ch-cookie-consent__category-group">
  19.             {% for child in form %}
  20.                 {% if child.vars.block_prefixes[0] != 'button' %}
  21.                     {{ form_row(child) }}
  22.                 {% endif %}
  23.             {% endfor %}
  24.         </div>
  25.         <div class="ch-cookie-consent__btn-group">
  26.             {{ form_rest(form) }}
  27.             {% if simplified %}
  28.                 {% block toggle_details %}
  29.                     <div class="ch-cookie-consent__toggle-details">
  30.                         <span class="ch-cookie-consent__toggle-details-show">{{ 'ch_cookie_consent.show_details'|trans({}, 'CHCookieConsentBundle') }}</span>
  31.                         <span class="ch-cookie-consent__toggle-details-hide">{{ 'ch_cookie_consent.hide_details'|trans({}, 'CHCookieConsentBundle') }}</span>
  32.                     </div>
  33.                 {% endblock %}
  34.             {% endif %}
  35.         </div>
  36.     {{ form_end(form) }}
  37. </div>