acquia_commercemanager-8.x-1.122/modules/acm_checkout/templates/acm-checkout-progress.html.twig
modules/acm_checkout/templates/acm-checkout-progress.html.twig
{#
/**
* @file
* Default theme implementation for the checkout progress.
*
* Available variables:
* - steps: An array of steps, where each step has the following keys:
* - id: The step ID.
* - label: The step label.
* - position: 'previous', 'current' or 'next'.
* - completed: TRUE or FALSE.
* - is_link: TRUE or FALSE.
*
* @ingroup themeable
*/
#}
<ol class="checkout-progress clearfix">
{% for step in steps %}
{%
set step_classes = [
'checkout-progress__step',
'-' ~ step.position,
step.completed ? '-complete' : '',
step.is_link ? '-has-link' : ''
]
%}
<li class="{{ step_classes|join(' ') }}">{{ step.label }}</li>
{% endfor %}
</ol>
