Index: openacs-4/packages/acs-templating/www/doc/guide/wizards.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/wizards.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-templating/www/doc/guide/wizards.adp 7 Aug 2017 23:48:03 -0000 1.3 +++ openacs-4/packages/acs-templating/www/doc/guide/wizards.adp 25 Apr 2018 08:42:18 -0000 1.4 @@ -16,17 +16,14 @@
Use the wizard create command to initialize a wizard, declaring any wizard state variables in the -params option:
--wizard create make_sandwich -params { sandwich_id } -+
wizard create make_sandwich -params { sandwich_id }
See the wizard API for optional parameters to this command.
Once the wizard is created, use the wizard create command to add steps to it:
-wizard add make_sandwich -label "Add the lettuce" -url "add-lettuce" -+wizard add make_sandwich -label "Add the lettuce" -url "add-lettuce"
In auto-generated wizards, the wizard steps appear in the order they were created. See the wizard API for optional parameters to this command. Alternatively, @@ -68,22 +65,18 @@
In the .tcl file:
-if { [wizard exists] } { +In the .tcl file:
if { [wizard exists] } { wizard submit form_name -buttons { { previous "Back" } repeat { next "Continue" } { finish Save } } } else { element create form_name submit -datatype keyword -widget submit } -In the .adp file:
-<formtemplate id=\@form_name\@ style=wizard> -+
In the .adp file:
<formtemplate id=\@form_name\@ style=wizard>
-if { [wizard exists] } { +if { [wizard exists] } { # go to the next wizard step wizard forward } else {