Changeset 823


Ignore:
Timestamp:
Aug 17, 2010, 4:34:30 PM (13 years ago)
Author:
duh
Message:
  • added assay and assayGroups pages to the wizard (not yet functional)
Location:
trunk/grails-app
Files:
2 added
2 edited

Legend:

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

    r819 r823  
    8080                                [title: 'Subjects'],                    // subjects
    8181                                [title: 'Events'],                              // events and event grouping
    82                                 [title: 'Groups'],                              // groups
     82                                //[title: 'Event Groups'],              // groups
    8383                                [title: 'Samples'],                             // samples
     84                                [title: 'Assays'],                              // assays
     85                                //[title: 'Assay Groups'],              // assays
    8486                                [title: 'Confirmation'],                // confirmation page
    8587                                [title: 'Done']                                 // finish page
     
    457459                        render(view: "_groups")
    458460                        onRender {
    459                                 flow.page = 5
     461                                flow.page = 4
    460462                                success()
    461463                        }
     
    478480                        render(view: "_samples_previous_warning")
    479481                        onRender {
    480                                 flow.page = 6
     482                                flow.page = 5
    481483
    482484                                // TEMPORARY FIX TO REMOVE ALL SAMPLES AND REGENERATE THEM
     
    501503                        render(view: "_samples")
    502504                        onRender {
    503                                 flow.page = 6
     505                                flow.page = 5
    504506
    505507                                // got samples?
     
    597599                                // handle form data
    598600                                samplePage(flow, flash, params) ? success() : error()
    599                         }.to "confirm"
     601                        }.to "assays"
    600602                        on("quickSave") {
    601603                                // handle form data
    602604                                samplePage(flow, flash, params) ? success() : error()
    603605                        }.to "waitForSave"
     606                }
     607
     608                assays {
     609                        render(view: "_assays")
     610                        onRender {
     611                                flow.page = 6
     612                        }
     613                        on("previous") {
     614                        }.to "samples"
     615                        on("next") {
     616                        }.to "assayGroups"
     617                }
     618
     619                assayGroups {
     620                        render(view: "_assay_groups")
     621                        onRender {
     622                                flow.page = 6
     623                        }
     624                        on("previous") {
     625                        }.to "assays"
     626                        on("next") {
     627                        }.to "confirm"
    604628                }
    605629
  • trunk/grails-app/views/wizard/pages/_subjects.gsp

    r778 r823  
    2525        </span>
    2626
    27         <wizard:textFieldElement name="addNumber" description="Number of subjects to add" error="addNumber" value="${values.addNumber}" size="4" maxlength="4">
     27        <wizard:textFieldElement name="addNumber" description="Number of subjects to add" error="addNumber" value="${values?.addNumber}" size="4" maxlength="4">
    2828                The number of subjects to add to your study
    2929        </wizard:textFieldElement>
    30         <wizard:termElement name="species" description="of species" value="${values.species}" ontologies="1132" addDummy="true">
     30        <wizard:termElement name="species" description="of species" value="${values?.species}" ontologies="1132" addDummy="true">
    3131                The species of the subjects you would like to add to your study
    3232        </wizard:termElement>
    33         <wizard:templateElement name="template" description="with template" value="${values.template}" error="template" entity="${dbnp.studycapturing.Subject}" ontologies="1132" addDummy="true">
     33        <wizard:templateElement name="template" description="with template" value="${values?.template}" error="template" entity="${dbnp.studycapturing.Subject}" ontologies="1132" addDummy="true">
    3434                The template to use for these subjects
    3535        </wizard:templateElement>
Note: See TracChangeset for help on using the changeset viewer.