#SET{afficher_si,#ARRAY}
#SET{etapes_max,0}[(#REM) nombre d'étape max, en tenant compte du fait que certaines étapes passées ont deja été masquées par afficher_si]
#SET{etape_a_afficher,0}
#SET{saisies_afficher_si_masquees,#VAL{get}|saisies_afficher_si_liste_masquees}
#SET{etape_courante,#CLE|replace{'etape_',''}}
[(#REM) mettre uniquement les étapes passées qui ont réussi le test d'afficher_si]
[(#GET{etape_courante}|<{#ENV{_etape}}|oui)
[(#VALEUR|in_any{#GET{saisies_afficher_si_masquees}}|non)
#SET{etape_a_afficher,#GET{etape_a_afficher}|plus{1}}
#SET{etapes_max,#GET{etapes_max}|plus{1}}
]
]
[(#REM) Mettre systématiquement l'étape courante]
[(#ENV{_etape}|=={#GET{etape_courante}}|oui)
#SET{etape_a_afficher,#GET{etape_a_afficher}|plus{1}}
#SET{etapes_max,#GET{etapes_max}|plus{1}}
#SET{etape_a_afficher_label,#INCLURE{
fond=inclure/fieldset_legend,
label=#VALEUR{options/label},
icone=#VALEUR{options/icone},
taille_icone=#VALEUR{options/taille_icone}
}
}
]
[(#REM) Mettre toutes les étapes futures]
[(#GET{etape_courante}|>{#ENV{_etape}}|oui)
#SET{etapes_max,#GET{etapes_max}|plus{1}}
]
#SET{params, #ARRAY{
'etape',#GET{etape_a_afficher},
'etapes', #GET{etapes_max},
'label_etape',#GET{etape_a_afficher_label}
}
}
[(#VAL{saisies:cvt_etapes_courante}|_T{#GET{params}})]