- Timestamp:
- Dec 23, 2009, 5:12:17 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 13 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Task.groovy
r241 r242 21 21 static hasMany = [entries: Entry, 22 22 taskModifications: TaskModification, 23 assignedGroups: AssignedGroup, 23 24 assignedPersons: AssignedPerson, 24 25 subTasks: Task, -
trunk/grails-app/i18n/messages.properties
r239 r242 4 4 5 5 person.personGroups=Person Groups 6 person.personGroups.help= Groups are for grouping people for information purposes. \ 7 For example a person with training in an area can be added to that group and that group assigned to a task. \ 8 This group then provides a record of persons trained in that area. \ 6 person.personGroups.help=Groups may be assigned to tasks and \ 7 may also provide a record of persons qualified or trained in a specific area. \ 9 8 Use Ctrl or Shift to select multiple groups. \ 10 9 Groups provide no application authorisations. … … 35 34 Include condition and contributing factors. 36 35 36 assignedGroup.estimatedDuration=Estimated Duration 37 assignedGroup.estimatedDuration.help=The estimated amount of time (hh:mm) that you would \ 38 like to assign this group to the task. 39 37 40 assignedPerson.estimatedDuration=Estimated Duration 38 assignedPerson.estimatedDuration.help=The estimated amount of time (hh:mm) that you would like to assign this person to the task. 41 assignedPerson.estimatedDuration.help=The estimated amount of time (hh:mm) that you would \ 42 like to assign this person to the task. 39 43 40 44 task.notFound=Could not complete operation, task not found. … … 47 51 taskRecurringSchedule.notFound=Could not complete operation, recurring schedule not found. 48 52 53 task.assignedGroups=Assigned Groups 54 task.assignedGroups.help=The person groups assigned to work on this task during planning along with estimated time. 49 55 task.assignedPersons=Assigned Persons 50 56 task.assignedPersons.help=The persons assigned to work on this task during planning along with estimated time. -
trunk/grails-app/services/CreateDataService.groovy
r241 r242 110 110 createDemoTasks() 111 111 createDemoEntries() 112 createDemoAssignedGroups() 112 113 createDemoAssignedPersons() 113 114 createDemoTaskRecurringSchedules() … … 655 656 } 656 657 658 def createDemoAssignedGroups() { 659 660 //AssignedGroup 661 def assignedGroupInstance 662 663 //AssignedGroup #1 664 assignedGroupInstance = new AssignedGroup(personGroup: PersonGroup.get(1), 665 task: Task.get(1), 666 estimatedHour: 2, 667 estimatedMinute: 30) 668 saveAndTest(assignedGroupInstance) 669 670 //AssignedGroup #2 671 assignedGroupInstance = new AssignedGroup(personGroup: PersonGroup.get(2), 672 task: Task.get(1), 673 estimatedHour: 1, 674 estimatedMinute: 0) 675 saveAndTest(assignedGroupInstance) 676 } 677 657 678 def createDemoAssignedPersons() { 658 679 -
trunk/grails-app/views/assignedPersonDetailed/create.gsp
r147 r242 30 30 <label for="task">Task:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'task','errors')}"> 33 ${assignedPersonInstance?.task} 32 <td valign="top" class="name"> 33 <g:link controller="taskDetailed" action="show" id="${assignedPersonInstance.task.id}" > 34 ${assignedPersonInstance?.task.encodeAsHTML()} 35 </g:link> 34 36 </td> 35 </tr> 37 </tr> 36 38 37 39 <tr class="prop"> -
trunk/grails-app/views/assignedPersonDetailed/edit.gsp
r147 r242 31 31 <label for="task">Task:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'task','errors')}"> 34 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${assignedPersonInstance?.task?.id}" ></g:select> 33 <td valign="top" class="name"> 34 <g:link controller="taskDetailed" action="show" id="${assignedPersonInstance.task.id}" > 35 ${assignedPersonInstance?.task.encodeAsHTML()} 36 </g:link> 35 37 </td> 36 </tr> 38 </tr> 37 39 38 40 <tr class="prop"> -
trunk/grails-app/views/task/edit.gsp
r241 r242 139 139 <tr class="prop"> 140 140 <td valign="top" class="name"> 141 <label for="assignedGroups">Assigned Groups:</label> 142 </td> 143 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> 144 145 <ul> 146 <g:each var="a" in="${taskInstance?.assignedGroups?}"> 147 <li><g:link controller="assignedGroup" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 148 </g:each> 149 </ul> 150 <g:link controller="assignedGroup" params="['task.id':taskInstance?.id]" action="create">Add AssignedGroup</g:link> 151 152 </td> 153 </tr> 154 155 <tr class="prop"> 156 <td valign="top" class="name"> 141 157 <label for="assignedPersons">Assigned Persons:</label> 142 158 </td> -
trunk/grails-app/views/task/show.gsp
r241 r242 114 114 115 115 <tr class="prop"> 116 <td valign="top" class="name">Assigned Groups:</td> 117 118 <td valign="top" style="text-align:left;" class="value"> 119 <ul> 120 <g:each var="a" in="${taskInstance.assignedGroups}"> 121 <li><g:link controller="assignedGroup" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 122 </g:each> 123 </ul> 124 </td> 125 126 </tr> 127 128 <tr class="prop"> 116 129 <td valign="top" class="name">Assigned Persons:</td> 117 130 -
trunk/grails-app/views/taskDetailed/edit.gsp
r241 r242 151 151 <tr class="prop"> 152 152 <td valign="top" class="name"> 153 <label for="assignedPersons">Assigned Groups:</label> 154 </td> 155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> 156 157 <ul> 158 <g:each var="a" in="${taskInstance?.assignedGroups?}"> 159 <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 160 </g:each> 161 </ul> 162 163 </td> 164 </tr> 165 166 <tr class="prop"> 167 <td valign="top" class="name"> 153 168 <label for="assignedPersons">Assigned Persons:</label> 154 169 </td> -
trunk/grails-app/views/taskDetailed/show.gsp
r241 r242 183 183 184 184 <tr class="prop"> 185 <td valign="top" class="name">Assigned Groups:</td> 186 187 <td valign="top" style="text-align:left;" class="value"> 188 <ul> 189 <g:each var="a" in="${taskInstance.assignedGroups}"> 190 <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 191 </g:each> 192 </ul> 193 <g:link controller="assignedGroupDetailed" params="['task.id':taskInstance?.id]" action="create">Add Assigned Group</g:link> 194 </td> 195 196 </tr> 197 198 199 <tr class="prop"> 185 200 <td valign="top" class="name">Assigned Persons:</td> 186 201 … … 191 206 </g:each> 192 207 </ul> 193 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add Assigned Person</g:link>208 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add Assigned Person</g:link> 194 209 </td> 195 210
Note: See TracChangeset
for help on using the changeset viewer.