Ignore:
Timestamp:
Nov 2, 2010, 10:25:06 AM (11 years ago)
Author:
m.s.vanvliet@…
Message:

Update NMC Pilot pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/nmc/PilotController.groovy

    r959 r1046  
    3636       
    3737    def index = {
    38        
     38               
     39                def studyInstance = new Study()
     40                studyInstance.properties = params
     41               
     42                [studyInstanceList: Study.list(params), studyInstance: studyInstance]
    3943    }
    4044
     
    4347        [studyInstanceList: Study.list(params), studyInstanceTotal: Study.count()]
    4448    }
    45        
    46         /**
    47         * create closure
    48         */
    49    def create = {
    50            def studyInstance = new Study()
    51            studyInstance.properties = params
    52            return [studyInstance: studyInstance]
    53    }
    54    
     49         
    5550   def save = {
    5651           def studyInstance = new Study(params)
     
    8075           }
    8176           else {
    82                    render(view: "create", model: [studyInstance: studyInstance])
     77                   render(view: "index", model: [studyInstance: studyInstance])
    8378           }
    8479   }
Note: See TracChangeset for help on using the changeset viewer.