Changeset 1046 for trunk/grails-app/conf/BootStrapTemplates.groovy
- Timestamp:
- Nov 2, 2010, 10:25:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrapTemplates.groovy
r870 r1046 229 229 .with { if (!validate()) { errors.each { println it} } else save()} 230 230 231 232 /* 233 * Add NMC - DCL Sample Mapping Template 234 * by Michael van Vliet 235 * 236 * For the Pilot running in Leiden (NOV2010) 237 */ 238 println ".adding sample DCL-Sample-Reference" 239 def sampleDCLTextField = new TemplateField( 240 name: 'DCL Sample Reference', 241 type: TemplateFieldType.STRING, 242 entity: Sample 243 ) 244 .with { if (!validate()) { errors.each { println it} } else save()} 245 246 // Human tissue sample template 247 println ".adding DCL Sample template..." 248 def dclSampleTemplate = new Template( 249 name: 'DCL Sample information', 250 entity: dbnp.studycapturing.Sample 251 ) 252 .addToFields(sampleDCLTextField) 253 .with { if (!validate()) { errors.each { println it} } else save()} 254 // EO DCL Sample Mapping Template********************************** 255 256 231 257 /* 232 258 def GrowthTreatmentTemplate = new Template(
Note: See TracChangeset
for help on using the changeset viewer.