Ignore:
Timestamp:
Apr 14, 2010, 11:36:53 AM (13 years ago)
Author:
duh
Message:
  • refactored wizard start page so that the big green buttons actually work
  • added a new page to load and modify a study, however this page is not yet functional
  • removed obsolete images
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r335 r341  
    7777                                flow.page = 1
    7878                        }
     79                        on("next").to "study"
     80                        on("modify").to "modify"
     81                }
     82
     83                // load a study to modify
     84                modify {
     85                        render(view: "_modify")
     86                        onRender {
     87                                flow.page = 1
     88                                flash.cancel = true
     89                        }
     90                        on("cancel").to "start"
    7991                        on("next") {
    80                                 // NOTE: this action is called by an Ajax
    81                                 //       request rendered in the _start
    82                                 //       template. So for the end user the
    83                                 //       webflow actually starts in the
    84                                 //       study logic...
    85                                 //       This ajax call is required to make
    86                                 //       the ajax flow work correctly
    87                         }.to "study"
     92                                // TODO: loading a study is not yet implemented
     93                                //       create a error stating this feature is
     94                                //       not yet implemented
     95                                flash.errors = [:]
     96                                this.appendErrorMap(
     97                                        ['study': 'Loading a study and modifying it has not yet been implemented. Please press \'cancel\' to go back to the initial page...'],
     98                                        flash.errors
     99                                )
     100                        }.to "modify"
    88101                }
    89102
Note: See TracChangeset for help on using the changeset viewer.