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.
See also
1 theme call to yamlform-confirmation.html.twig
- YamlFormController::confirmation in src/
Controller/ YamlFormController.php - Returns a form confirmation page.
File
templates/yamlform-confirmation.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to form confirmation.
- *
- * Available variables:
- * - progress: Progress bar.
- * - message: Confirmation message.
- * - back_url: URL to the previous form submission.
- *
- * @see template_preprocess_yamlform_confirmation()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('yamlform/yamlform.confirmation') }}
- <div{{ attributes.addClass('yamlform-confirmation') }}>
- {% if progress %}
- {{ progress }}
- {% endif %}
-
- {% if message %}
- <div class="yamlform-confirmation__message">{{ message }}</div>
- {% endif %}
-
- {% if back %}
- <div class="yamlform-confirmation__back">
- <a href="{{ back_url }}" rel="back" title="{{ back_label }}"{{ back_attributes }}>{{ back_label }}</a>
- </div>
- {% endif %}
- </div>