Changeset 366


Ignore:
Timestamp:
Apr 21, 2010, 3:36:37 PM (9 years ago)
Author:
keesvb
Message:

added missing fields for study template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r364 r366  
    223223                        def studyTemplate = new Template(
    224224                                name: 'Academic study', entity: dbnp.studycapturing.Study)
     225                                .addToFields(new TemplateField(name: 'Description',type: TemplateFieldType.TEXT))
     226                                .addToFields(new TemplateField(name: 'Study code',type: TemplateFieldType.STRING))
     227                                .addToFields(new TemplateField(name: 'Objectives',type: TemplateFieldType.TEXT))
    225228                                .addToFields(new TemplateField(name: 'Consortium',type: TemplateFieldType.STRING))
    226229                                .addToFields(new TemplateField(name: 'Cohort name',type: TemplateFieldType.STRING))
    227230                                .addToFields(new TemplateField(name: 'Time zone',type: TemplateFieldType.STRING))
    228231                                .addToFields(new TemplateField(name: 'Responsible scientist',type: TemplateFieldType.STRING))
    229                                 .addToFields(new TemplateField(name: 'Lab code',type: TemplateFieldType.STRING))
     232                                .addToFields(new TemplateField(name: 'Lab id',type: TemplateFieldType.STRING))
    230233                                .addToFields(new TemplateField(name: 'Institute',type: TemplateFieldType.STRING))
    231234                        .with { if (!validate()) { errors.each { println it} } else save()}
Note: See TracChangeset for help on using the changeset viewer.