From 2e979748c32be44abf7331a0fda737c4d8a81c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 7 May 2023 10:01:10 +0200 Subject: [PATCH] templates: add progressbar role to form steps (#40921) --- templates/wcs/front/formdata_steps.html | 67 ++++++++++++++----------- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/templates/wcs/front/formdata_steps.html b/templates/wcs/front/formdata_steps.html index ea4e41bf..3711ce5a 100644 --- a/templates/wcs/front/formdata_steps.html +++ b/templates/wcs/front/formdata_steps.html @@ -1,34 +1,41 @@ {% load i18n %}
-

{% trans "Steps" %}

- {% block steps-list %} -
    - {% for page_label in page_labels %} - {% spaceless %} -
  1. - - - {{ forloop.counter }} +

    {% trans "Steps" %}

    +
    + {% block steps-list %} +
      + {% for page_label in page_labels %} + {% spaceless %} +
    1. + + + {{ forloop.counter }} + + + {{ page_labels|length }} + + + {{ page_label }} + {% if forloop.counter == current_page_no %}(étape courante){% endif %} - - {{ page_labels|length }} - - - {{ page_label }} - {% if forloop.counter == current_page_no %}(étape courante){% endif %} - -
    2. - {% endspaceless %} - {% endfor %} -
    - {% endblock %} +
  2. + {% endspaceless %} + {% endfor %} +
+ {% endblock %} +