file details--grouped.html.twig

Theme override to display a details element.

Available variables

  • attributes: A list of HTML attributes for the details element.
  • errors: (optional) Any errors for this details element, may not be set.
  • title: (optional) The title of the element, may not be set.
  • description: (optional) The description of the element, may not be set.
  • children: (optional) The children of the element, may not be set.
  • value: (optional) The value of the element, may not be set.

File

templates/form/details--grouped.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a details element.
  5. *
  6. * Available variables
  7. * - attributes: A list of HTML attributes for the details element.
  8. * - errors: (optional) Any errors for this details element, may not be set.
  9. * - title: (optional) The title of the element, may not be set.
  10. * - description: (optional) The description of the element, may not be set.
  11. * - children: (optional) The children of the element, may not be set.
  12. * - value: (optional) The value of the element, may not be set.
  13. *
  14. * @see template_preprocess_details()
  15. *
  16. * @ingroup uikit_themeable
  17. */
  18. #}
  19. <details{{ attributes.addClass('uk-padding-small') }}>
  20. {%- if title -%}
  21. <summary{{ summary_attributes }}>{{ title }}</summary>
  22. {%- endif -%}
  23. <div>
  24. {% if errors %}
  25. <div>
  26. {{ errors }}
  27. </div>
  28. {% endif %}
  29. {{ description }}
  30. {{ children }}
  31. {{ value }}
  32. </div>
  33. </details>

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in