{# Django template for StepIndicator #} {% with headingTagName=headingTag|default:'h4' %}
    {% for step in steps %} {% if forloop.counter < currentStep %}
  1. {{ step.label }} completed
  2. {% elif forloop.counter == currentStep %}
  3. {{ step.label }}
  4. {% else %}
  5. {{ step.label }} not completed
  6. {% endif %} {% endfor %}
<{{ headingTagName }} class="usa-step-indicator__heading"> Step {{ currentStep }} of {{ steps|length }} {% for step in steps %}{% if forloop.counter == currentStep %}{{ step.label }}{% endif %}{% endfor %}
{% endwith %}