Changeset 114 for trunk/grails-app/conf


Ignore:
Timestamp:
Apr 14, 2009, 10:03:07 AM (16 years ago)
Author:
gav
Message:

Small adjustment to BootStrap? Tasks, adjust link in assignedPersonDetailed show and change from using quotation marks to bold type on login page.

File:
1 edited

Legend:

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

    r102 r114  
    211211        //Task
    212212        def taskInstance
    213         def subTaskInstance
    214213
    215214        taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
     
    222221        BootStrapSaveAndTest(taskInstance)
    223222
    224         subTaskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
    225                  taskStatus:TaskStatus.findByName("Not Started"),
    226                  taskPriority:TaskPriority.get(2),
    227                  taskType:TaskType.get(1),
    228                  leadPerson:Person.get(5),
    229                  description:"Some follow-up work",
    230                  comment:"Some help required")
    231         BootStrapSaveAndTest(subTaskInstance)
    232        
    233         //Add task 2 as a subTask of task 1.
    234         taskInstance.addToSubTasks(Task.get(2))
    235         subTaskInstance.parentTask = Task.get(1)
    236 
    237         subTaskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
     223        taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
     224                taskStatus:TaskStatus.findByName("Not Started"),
     225                taskPriority:TaskPriority.get(2),
     226                taskType:TaskType.get(1),
     227                leadPerson:Person.get(5),
     228                description:"Some follow-up work",
     229                comment:"Some help required",
     230                parentTask: Task.get(1))
     231        BootStrapSaveAndTest(taskInstance)
     232
     233        taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
     234                taskStatus:TaskStatus.findByName("Not Started"),
     235                taskPriority:TaskPriority.get(2),
     236                taskType:TaskType.get(1),
     237                leadPerson:Person.get(5),
     238                description:"A Sub Task can be created by setting the Parent Task value",
     239                comment:"Some help required",
     240                parentTask: Task.get(1))
     241        BootStrapSaveAndTest(taskInstance)
     242
     243        taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
    238244                 taskStatus:TaskStatus.findByName("Not Started"),
    239245                 taskPriority:TaskPriority.get(2),
     
    241247                 leadPerson:Person.get(4),
    242248                 description:"Replace sensor at next opportunity.",
    243                  comment:"Nothing else has worked.")
    244         BootStrapSaveAndTest(subTaskInstance)
    245 
    246         //Add task 3 as a subTask of task 1.
    247         taskInstance.addToSubTasks(Task.get(3))
    248         subTaskInstance.parentTask = Task.get(1)
     249                 comment:"Nothing else has worked.",
     250                parentTask: Task.get(1))
     251        BootStrapSaveAndTest(taskInstance)
    249252
    250253        taskInstance = new Task(taskGroup:TaskGroup.findByName("Production Activites"),
Note: See TracChangeset for help on using the changeset viewer.