Changeset 379 for trunk/grails-app/conf


Ignore:
Timestamp:
Apr 26, 2010, 2:31:00 PM (13 years ago)
Author:
roberth
Message:

Updated the person, personrole and personaffiliation view templates in order to create a consistent example for simple tables.
Also updated bootstrap.groovy to contain several persons and roles

File:
1 edited

Legend:

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

    r375 r379  
    6262                            name: "Statician"
    6363                        ).save();
     64
     65                        // Create 30 roles to test pagination
     66                        def roleCounter = 1;
     67                        30.times { new PersonRole( name: "Rol #${roleCounter++}" ).save() }
     68
     69                        // Create persons
    6470                        def person1 = new Person(
    6571                            lastName: "Scientist",
     
    8591                        .save();
    8692
     93                        // Create 30 persons to test pagination
     94                        def personCounter = 1;
     95                        30.times { new Person( firstName: "Person #${roleCounter}", lastName: "Testperson", email: "email${roleCounter++}@testdomain.com" ).save() }
     96
    8797 /*   COMMENTED OUT BECAUSE IT BREAKS EVERYTHING AFTER REFACTORING THE DATAMODEL
    8898
Note: See TracChangeset for help on using the changeset viewer.