No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

43 líneas
1.9KB

  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') }}</p>
  11. {% endblock %}
  12. {% block read_more %}
  13. {# <a class="ch-cookie-consent__read-more" href="{{ path('page', {pageSlug: 'politique-de-confidentialite'}) }}">{{ 'ch_cookie_consent.read_more'|trans({}, 'CHCookieConsentBundle') }}</a> #}
  14. {% endblock %}
  15. {{ form_start(form, {'attr': {'class': 'ch-cookie-consent__form'}}) }}
  16. <div class="ch-cookie-consent__category-group">
  17. {% for child in form %}
  18. {% if child.vars.block_prefixes[0] != 'button' %}
  19. {{ form_row(child) }}
  20. {% endif %}
  21. {% endfor %}
  22. </div>
  23. <div class="ch-cookie-consent__btn-group">
  24. {{ form_rest(form) }}
  25. {% if simplified %}
  26. {% block toggle_details %}
  27. <div class="ch-cookie-consent__toggle-details">
  28. <span class="ch-cookie-consent__toggle-details-show">{{ 'ch_cookie_consent.show_details'|trans({}, 'CHCookieConsentBundle') }}</span>
  29. <span class="ch-cookie-consent__toggle-details-hide">{{ 'ch_cookie_consent.hide_details'|trans({}, 'CHCookieConsentBundle') }}</span>
  30. </div>
  31. {% endblock %}
  32. {% endif %}
  33. </div>
  34. {{ form_end(form) }}
  35. </div>