You are here

yamlform-confirmation.html.twig in YAML Form 8

Default theme implementation to form confirmation.

Available variables:

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

File

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