Changeset 114


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.

Location:
trunk/grails-app
Files:
3 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"),
  • trunk/grails-app/views/assignedPersonDetailed/show.gsp

    r96 r114  
    3333                            <td valign="top" class="name">Task:</td>
    3434                           
    35                             <td valign="top" class="value"><g:link controller="task" action="show" id="${assignedPersonInstance?.task?.id}">${assignedPersonInstance?.task?.encodeAsHTML()}</g:link></td>
     35                            <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${assignedPersonInstance?.task?.id}">${assignedPersonInstance?.task?.encodeAsHTML()}</g:link></td>
    3636                           
    3737                        </tr>
  • trunk/grails-app/views/login/auth.gsp

    r106 r114  
    4646        <div id='login'>
    4747        <h1>Welcome to gnuMims please log in</h1>
    48         The demo users are "manager" and "user" both having password "pass"
     48        The demo users are <b>manager</b> and <b>user</b> both having the password: <b>pass</b>
    4949
    5050                <div class='inner'>
Note: See TracChangeset for help on using the changeset viewer.