status-messages.html.twig 869 B

12345678910111213141516171819202122232425262728
  1. {% extends "@classy/misc/status-messages.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Default theme implementation for status messages.
  6. *
  7. * Displays status, error, and warning messages, grouped by type.
  8. *
  9. * An invisible heading identifies the messages for assistive technology.
  10. * Sighted users see a colored box. See http://www.w3.org/TR/WCAG-TECHS/H69.html
  11. * for info.
  12. *
  13. * Add an ARIA label to the contentinfo area so that assistive technology
  14. * user agents will better describe this landmark.
  15. *
  16. * Available variables:
  17. * - message_list: List of messages to be displayed, grouped by type.
  18. * - status_headings: List of all status types.
  19. */
  20. #}
  21. {% block messages %}
  22. {% if message_list is not empty %}
  23. {{ attach_library('bartik/messages') }}
  24. <div class="messages__wrapper layout-container">
  25. {{ parent() }}
  26. </div>
  27. {% endif %}
  28. {% endblock messages %}