{% set workflow_steps = ['Paramétrage', 'Simulation', 'Saisie', 'Finalisation', 'Archivage'] %} {% set actions = { 'Paramétrage': {'precedent': '', 'suivant': '30'}, 'Simulation': {'precedent': '31', 'suivant': '32'}, 'Saisie': {'precedent': '33', 'suivant': '34'}, 'Finalisation': {'precedent': '35', 'suivant': '36'}, 'Archivage': {'precedent': '37', 'suivant': ''} } %}

Étapes

{% if actions[workflow]['precedent'] != '' %} Étape précédente {% endif %} {% if actions[workflow]['suivant'] != '' %} Étape suivante {% endif %}