Changeset 331


Ignore:
Timestamp:
Apr 8, 2010, 2:20:13 PM (9 years ago)
Author:
duh
Message:
  • added a dummy integer template field to the academic study template in order to work on validation
File:
1 edited

Legend:

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

    r329 r331  
    169169                        def studyTemplate = new Template(
    170170                                name: 'Academic study', entity: dbnp.studycapturing.Study)
    171                         .addToFields(new TemplateField(name: 'Consortium',type: TemplateFieldType.STRING))
    172                         .addToFields(new TemplateField(name: 'Cohort name',type: TemplateFieldType.STRING))
    173                         .addToFields(new TemplateField(name: 'Time zone',type: TemplateFieldType.STRING))
    174                         .addToFields(new TemplateField(name: 'Responsible scientist',type: TemplateFieldType.STRING))
    175                         .addToFields(new TemplateField(name: 'Lab code',type: TemplateFieldType.STRING))
    176                         .addToFields(new TemplateField(name: 'Institute',type: TemplateFieldType.STRING))
     171                                .addToFields(new TemplateField(name: 'Consortium',type: TemplateFieldType.STRING))
     172                                .addToFields(new TemplateField(name: 'Cohort name',type: TemplateFieldType.STRING))
     173                                .addToFields(new TemplateField(name: 'Time zone',type: TemplateFieldType.STRING))
     174                                .addToFields(new TemplateField(name: 'Responsible scientist',type: TemplateFieldType.STRING))
     175                                .addToFields(new TemplateField(name: 'Lab code',type: TemplateFieldType.STRING))
     176                                .addToFields(new TemplateField(name: 'Institute',type: TemplateFieldType.STRING))
     177                                .addToFields(new TemplateField(name: 'Some Integer',type: TemplateFieldType.INTEGER))
    177178                        .with { if (!validate()) { errors.each { println it} } else save()}
    178179
Note: See TracChangeset for help on using the changeset viewer.