You are here

webform-confirmation.html.twig in Webform 8.5

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

Default theme implementation to webform confirmation.

Available variables:

  • progress: Progress bar.
  • message: Confirmation message.
  • back_url: URL to the previous webform submission.

File

templates/webform-confirmation.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to webform confirmation.
  5. *
  6. * Available variables:
  7. * - progress: Progress bar.
  8. * - message: Confirmation message.
  9. * - back_url: URL to the previous webform submission.
  10. *
  11. * @see template_preprocess_webform_confirmation()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {{ attach_library('webform/webform.confirmation') }}
  17. {% if progress %}
  18. {{ progress }}
  19. {% endif %}
  20. <div{{ attributes.addClass('webform-confirmation') }}>
  21. {% if message %}
  22. <div class="webform-confirmation__message">{{ message }}</div>
  23. {% endif %}
  24. {% if back %}
  25. <div class="webform-confirmation__back">
  26. <a href="{{ back_url }}" rel="prev"{{ back_attributes }}>{{ back_label }}</a>
  27. </div>
  28. {% endif %}
  29. </div>