Ignore:
Timestamp:
Jan 19, 2010, 2:25:45 PM (10 years ago)
Author:
duh
Message:
  • added sample template data in bootstrap
  • upgraded jQuery
  • improved study capture wizard
  • fixed selenium test
Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
5 edited

Legend:

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

    r85 r92  
    55 */
    66class Study {
     7        nimble.User owner
     8        String title
     9        String code
     10        String researchQuestion
     11        String description
     12        String ecCode
     13        Date dateCreated
     14        Date lastUpdated
     15        Date startDate
     16        Template template
    717
    8     nimble.User owner
    9     String title
    10     String code
    11     String researchQuestion
    12     String description
    13     String ecCode
    14     Date dateCreated
    15     Date lastUpdated
    16     Date startDate
    17     Template template
     18        static hasMany = [editors: nimble.User, readers: nimble.User,
     19                subjects: Subject, groups: SubjectGroup,
     20                events: Event, samplingEvents: SamplingEvent]
    1821
    19     static hasMany = [ editors : nimble.User, readers : nimble.User,
    20             subjects: Subject, groups : SubjectGroup,
    21             events: Event, samplingEvents : SamplingEvent]
     22        static constraints = {
     23                //template(nullable:true,blank:true)
     24        }
    2225
    23     static constraints = {
    24         template(nullable:true,blank:true)
    25     }
    26 
    27     static mapping = {
    28         researchQuestion type:'text'
    29         description type:'text'
    30     }
    31 
     26        static mapping = {
     27                researchQuestion type: 'text'
     28                description type: 'text'
     29        }
    3230}
  • trunk/grails-app/domain/dbnp/studycapturing/Template.groovy

    r84 r92  
    99
    1010    String name
    11     nimble.User owner
     11    //nimble.User owner
    1212
    1313    static hasMany = [subjectFields : TemplateSubjectField]
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy

    r84 r92  
    55 */
    66abstract class TemplateField {
    7 
    87    String name
    98    TemplateFieldType type
    10  
    119
    1210    static constraints = {
    1311    }
     12
     13        def String toString() {
     14                return name
     15        }
    1416}
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateSubjectField.groovy

    r84 r92  
    55 */
    66class TemplateSubjectField extends TemplateField {
     7        static constraints = {
     8        }
    79
    8     static constraints = {
    9     }
     10        def String toString() {
     11                super.toString()
     12        }
    1013}
  • trunk/grails-app/domain/dbnp/studycapturing/Term.groovy

    r84 r92  
    1414    static constraints = {
    1515    }
     16
     17  def String toString() {
     18    return name
     19  }
     20
     21
    1622}
Note: See TracChangeset for help on using the changeset viewer.