You are here

webform-submission.html.twig in Webform 8.5

Same filename and directory in other branches
  1. 6.x templates/webform-submission.html.twig

Default theme implementation for webform submission.

Available variables:

  • elements: An array of elements to display in view mode.
  • webform_submission: The webform submission.
  • webform: The webform.

File

templates/webform-submission.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for webform submission.
  5. *
  6. * Available variables:
  7. * - elements: An array of elements to display in view mode.
  8. * - webform_submission: The webform submission.
  9. * - webform: The webform.
  10. *
  11. * @see template_preprocess_webform_submission()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {%
  17. set classes = [
  18. 'webform-submission',
  19. 'webform-submission--webform-' ~ webform.id()|clean_class,
  20. webform_submission.isSticky() ? 'webform-submission--sticky',
  21. view_mode ? 'webform-submission--view-mode-' ~ view_mode|clean_class,
  22. ]
  23. %}
  24. <div{{ attributes.addClass(classes) }}>
  25. {{ navigation }}
  26. {{ information }}
  27. {{ submission }}
  28. </div>