Opened 12 years ago
Last modified 11 years ago
#21644 closed New feature
FormWizard needs confirmation step logic — at Initial Version
| Reported by: | nickname123 | Owned by: | nobody | 
|---|---|---|---|
| Component: | contrib.formtools | Version: | 1.6 | 
| Severity: | Normal | Keywords: | |
| Cc: | bnafta@…, albrecht.andi@… | Triage Stage: | Accepted | 
| Has patch: | no | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
The FormWizard needs to handle a confirmation step that is capable of easily outputting a readonly copy of all step data.  It is currently very difficult to support a confirmation step in the FormWizard workflow.  The confirmation step needs access to the "final_form_list" created in the render_done() method and passed to the done() method.  This is important so the user can see the data he is confirming.
I.e. the confirmation step as presented in the documentation https://docs.djangoproject.com/en/1.6/ref/contrib/formtools/form-wizard/#using-a-different-template-for-each-form does not satisfy the requirements for confirmation since the user cannot actually see his order that he is supposed to confirm.
This could be worked into the render_done() method, or broken into two steps.  However, currently, one must duplicate a ton of code to render a confirmation view that outputs a readonly copy of the previous steps.
This could be implemented in a way that allows the developer to "opt out" of the confirmation if the specific FormWizard in question does not need a confirmation step.