{# /** * @file * Default theme implementation from YAML form wizard progress bar. * * Available variables: * - yamlform: A YAML form. * - pages: Array of wizard pages. * - current_page: Current wizard page. * - max_pages: Maximum number of pages to be displayed. * * @see template_preprocess_yamlform_progress_bar() * * @ingroup themeable */ #} {{ attach_library('yamlform/yamlform.progress.bar') }} {% if pages|length < max_pages %}
    {% for index, title in pages %}{% set classes = [ index < current_page ? 'done', index == current_page ? 'current', ] %} {{ title }}{% if (loop.first or loop.last) %}{% endif %} {% endfor %}
{% endif %}