yamlform-progress.html.twig in YAML Form 8
Default theme implementation from form wizard progress.
Available variables:
- yamlform: A form.
- pages: Array of wizard pages.
- current_page: Current wizard page.
- total_pages: Current wizard page.
- summary: Summary of progress.
- percentage: Percentage completed.
- bar: A progress bar.
See also
2 theme calls to yamlform-progress.html.twig
- template_preprocess_yamlform_confirmation in includes/
yamlform.theme.inc - Prepares variables for form confirmation templates.
- YamlFormSubmissionForm::form in src/
YamlFormSubmissionForm.php - Gets the actual form array to be built.
File
templates/yamlform-progress.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation from form wizard progress.
- *
- * Available variables:
- * - yamlform: A form.
- * - pages: Array of wizard pages.
- * - current_page: Current wizard page.
- * - total_pages: Current wizard page.
- * - summary: Summary of progress.
- * - percentage: Percentage completed.
- * - bar: A progress bar.
- *
- * @see template_preprocess_yamlform_progress()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('yamlform/yamlform.progress') }}
-
- <div class="yamlform-progress">
-
- {{ bar }}
-
- {% if summary or percentage %}
- <div class="yamlform-progress__status">
- {% if summary %}
- <span class="yamlform-progress__'summary">{{ summary }}</span>
- {% if percentage %}
- <span class="yamlform-progress__percentage">({{ percentage }})</span>
- {% endif %}
- {% else %}
- <span class="yamlform-progress__percentage">{{ percentage }}</span>
- {% endif %}
- </div>
- {% endif %}
-
- </div>