file details.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.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. <ul{{ attributes }} uk-accordion>
  20. <li>
  21. {%- if title -%}
  22. <h3{{ summary_attributes.addClass('uk-accordion-title') }}>{{ title }}</h3>
  23. {%- endif -%}
  24. <div class="uk-accordion-content">
  25. {% if errors %}
  26. <div>
  27. {{ errors }}
  28. </div>
  29. {% endif %}
  30. {{ description }}
  31. {{ children }}
  32. {{ value }}
  33. </div>
  34. </li>
  35. </ul>

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