Ignore:
Timestamp:
Sep 8, 2010, 1:17:25 PM (11 years ago)
Author:
duh
Message:
  • Resolved issue #66, marking required fields in wizard
Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Event.groovy

    r784 r874  
    6060                        name: 'startTime',
    6161                        type: TemplateFieldType.RELTIME,
    62                         comment: "Please enter the start time as a relative time from study start date. "+RelTime.getHelpText()),
     62                        comment: "Please enter the start time as a relative time from study start date. "+RelTime.getHelpText(),
     63                        required: true),
    6364                new TemplateField(
    6465                        name: 'endTime',
    6566                        type: TemplateFieldType.RELTIME,
    66                         comment: "Please enter the end time as a relative time from study start date. "+RelTime.getHelpText())
     67                        comment: "Please enter the end time as a relative time from study start date. "+RelTime.getHelpText(),
     68                        required: true)
    6769        ]
    6870
  • trunk/grails-app/domain/dbnp/studycapturing/SamplingEvent.groovy

    r822 r874  
    4747                        name: 'startTime',
    4848                        type: TemplateFieldType.RELTIME,
    49                         comment: "Please enter the start time as a relative time from study start date."+RelTime.getHelpText()),
     49                        comment: "Please enter the start time as a relative time from study start date."+RelTime.getHelpText(),
     50                        required: true),
    5051                new TemplateField(
    5152                        name: 'duration',
    5253                        type: TemplateFieldType.RELTIME,
    53                         comment: "Please enter the duration of the sampling action, if applicable. "+RelTime.getHelpText()),
     54                        comment: "Please enter the duration of the sampling action, if applicable. "+RelTime.getHelpText(),
     55                        required: true),
    5456                new TemplateField(
    5557                        name: 'sampleTemplate',
    5658                        type: TemplateFieldType.TEMPLATE,
    5759                        entity: dbnp.studycapturing.Sample,
    58                         comment: "Please select the template of the resulting samples")
     60                        comment: "Please select the template of the resulting samples",
     61                        required: true)
    5962        ]
    6063
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r863 r874  
    6666                new TemplateField(
    6767                        name: 'title',
    68                         type: TemplateFieldType.STRING),
     68                        type: TemplateFieldType.STRING,
     69                        required: true),
    6970                new TemplateField(
    7071                        name: 'code',
    7172                        type: TemplateFieldType.STRING,
    7273                        preferredIdentifier:true,
    73                         comment: 'Fill out the code by which many people will recognize your study'),
     74                        comment: 'Fill out the code by which many people will recognize your study',
     75                        required: true),
    7476                new TemplateField(
    7577                        name: 'startDate',
    7678                        type: TemplateFieldType.DATE,
    77                         comment: 'Fill out the official start date or date of first action')
     79                        comment: 'Fill out the official start date or date of first action',
     80                        required: true)
    7881        ]
    7982
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r784 r874  
    4545                        type: TemplateFieldType.STRING,
    4646                        preferredIdentifier: true,
    47                         comment: 'Use the local subject name or the pre-defined name'),
     47                        comment: 'Use the local subject name or the pre-defined name',
     48                        required: true),
    4849                new TemplateField(
    4950                        name: 'species',
    5051                        type: TemplateFieldType.ONTOLOGYTERM,
    51                         comment: "The species name is based on the NEWT ontology; if a species is missing, please add it to the ontology using 'add more'")
     52                        comment: "The species name is based on the NEWT ontology; if a species is missing, please add it to the ontology using 'add more'",
     53                        required: true)
    5254        ]
    5355}
Note: See TracChangeset for help on using the changeset viewer.