Add the current step and total steps of a wizard in the template context.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-17 17:09:59 -04:00
parent 62e221ffbb
commit c2bb697306
3 changed files with 4 additions and 0 deletions

View File

@@ -168,6 +168,8 @@ class DocumentCreateWizard(SessionWizardView):
'submit_label': _('Next step'),
'submit_icon_class': icon_wizard_submit,
'title': _('Document upload wizard'),
'wizard_step': wizard_step,
'wizard_steps': WizardStep.get_all(),
})
return context