- Timestamp:
- Dec 22, 2009, 5:38:37 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 7 added
- 3 deleted
- 11 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssignedGroupDetailedController.groovy
r233 r240 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class Assigned PersonDetailedController extends BaseController {3 class AssignedGroupDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ assigned PersonInstanceList: AssignedPerson.list( params ), assignedPersonInstanceTotal: AssignedPerson.count() ]12 [ assignedGroupInstanceList: AssignedGroup.list( params ), assignedGroupInstanceTotal: AssignedGroup.count() ] 13 13 } 14 14 15 15 def show = { 16 def assigned PersonInstance = AssignedPerson.get( params.id )16 def assignedGroupInstance = AssignedGroup.get( params.id ) 17 17 18 if(!assigned PersonInstance) {19 flash.message = "Assigned Personnot found with id ${params.id}"18 if(!assignedGroupInstance) { 19 flash.message = "AssignedGroup not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ assigned PersonInstance : assignedPersonInstance ] }22 else { return [ assignedGroupInstance : assignedGroupInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def assigned PersonInstance = AssignedPerson.get( params.id )27 if(assigned PersonInstance) {26 def assignedGroupInstance = AssignedGroup.get( params.id ) 27 if(assignedGroupInstance) { 28 28 try { 29 def taskId = assigned PersonInstance.task.id30 assigned PersonInstance.delete()31 flash.message = "Assigned Person${params.id} deleted"29 def taskId = assignedGroupInstance.task.id 30 assignedGroupInstance.delete() 31 flash.message = "AssignedGroup ${params.id} deleted" 32 32 redirect(controller:"taskDetailed", action:"show", id: taskId) 33 33 } 34 34 catch(org.springframework.dao.DataIntegrityViolationException e) { 35 flash.message = "Assigned Person${params.id} could not be deleted"35 flash.message = "AssignedGroup ${params.id} could not be deleted" 36 36 redirect(action:show,id:params.id) 37 37 } 38 38 } 39 39 else { 40 flash.message = "Assigned Personnot found with id ${params.id}"40 flash.message = "AssignedGroup not found with id ${params.id}" 41 41 redirect(action:list) 42 42 } … … 44 44 45 45 def edit = { 46 def assigned PersonInstance = AssignedPerson.get( params.id )46 def assignedGroupInstance = AssignedGroup.get( params.id ) 47 47 48 if(!assigned PersonInstance) {49 flash.message = "Assigned Personnot found with id ${params.id}"48 if(!assignedGroupInstance) { 49 flash.message = "AssignedGroup not found with id ${params.id}" 50 50 redirect(action:list) 51 51 } 52 52 else { 53 return [ assigned PersonInstance : assignedPersonInstance ]53 return [ assignedGroupInstance : assignedGroupInstance ] 54 54 } 55 55 } 56 56 57 57 def update = { 58 def assigned PersonInstance = AssignedPerson.get( params.id )59 if(assigned PersonInstance) {58 def assignedGroupInstance = AssignedGroup.get( params.id ) 59 if(assignedGroupInstance) { 60 60 if(params.version) { 61 61 def version = params.version.toLong() 62 if(assigned PersonInstance.version > version) {62 if(assignedGroupInstance.version > version) { 63 63 64 assigned PersonInstance.errors.rejectValue("version", "assignedPerson.optimistic.locking.failure", "Another user has updated this AssignedPersonwhile you were editing.")65 render(view:'edit',model:[assigned PersonInstance:assignedPersonInstance])64 assignedGroupInstance.errors.rejectValue("version", "assignedGroup.optimistic.locking.failure", "Another user has updated this AssignedGroup while you were editing.") 65 render(view:'edit',model:[assignedGroupInstance:assignedGroupInstance]) 66 66 return 67 67 } 68 68 } 69 assigned PersonInstance.properties = params70 if(!assigned PersonInstance.hasErrors() && assignedPersonInstance.save(flush: true)) {71 flash.message = "Assigned Person${params.id} updated"72 redirect(action:show,id:assigned PersonInstance.id)69 assignedGroupInstance.properties = params 70 if(!assignedGroupInstance.hasErrors() && assignedGroupInstance.save(flush: true)) { 71 flash.message = "AssignedGroup ${params.id} updated" 72 redirect(action:show,id:assignedGroupInstance.id) 73 73 } 74 74 else { 75 render(view:'edit',model:[assigned PersonInstance:assignedPersonInstance])75 render(view:'edit',model:[assignedGroupInstance:assignedGroupInstance]) 76 76 } 77 77 } 78 78 else { 79 flash.message = "Assigned Personnot found with id ${params.id}"79 flash.message = "AssignedGroup not found with id ${params.id}" 80 80 redirect(action:edit,id:params.id) 81 81 } … … 84 84 def create = { 85 85 if(!params.task?.id) { 86 flash.message = "Please select a task and then 'Add Assigned Person'"87 redirect(controller: "taskDetailed", action: search)86 flash.message = "Please select a task and then 'Add Assigned Group'" 87 redirect(controller: "taskDetailed", action: "search") 88 88 } 89 89 else { 90 def assigned PersonInstance = new AssignedPerson()91 assigned PersonInstance.properties = params92 return ['assigned PersonInstance':assignedPersonInstance]90 def assignedGroupInstance = new AssignedGroup() 91 assignedGroupInstance.properties = params 92 return ['assignedGroupInstance':assignedGroupInstance] 93 93 } 94 94 } 95 95 96 96 def save = { 97 def assigned PersonInstance = new AssignedPerson(params)97 def assignedGroupInstance = new AssignedGroup(params) 98 98 99 if(!assigned PersonInstance.hasErrors() && assignedPersonInstance.save(flush: true)) {100 flash.message = "Assigned Person ${assignedPersonInstance.id} created"99 if(!assignedGroupInstance.hasErrors() && assignedGroupInstance.save(flush: true)) { 100 flash.message = "AssignedGroup ${assignedGroupInstance.id} created" 101 101 redirect(controller:"taskDetailed", action:"show", id: params.task.id) 102 102 } 103 103 else { 104 render(view:'create',model:[assigned PersonInstance:assignedPersonInstance])104 render(view:'create',model:[assignedGroupInstance:assignedGroupInstance]) 105 105 } 106 106 } -
trunk/grails-app/domain/Task.groovy
r181 r240 21 21 static hasMany = [entries: Entry, 22 22 taskModifications: TaskModification, 23 assigned Persons: AssignedPerson,23 assignedGroups: AssignedGroup, 24 24 subTasks: Task, 25 25 associatedAssets: Asset, -
trunk/grails-app/services/CreateDataService.groovy
r237 r240 110 110 createDemoTasks() 111 111 createDemoEntries() 112 createDemoAssigned Persons()112 createDemoAssignedGroups() 113 113 createDemoTaskRecurringSchedules() 114 114 … … 655 655 } 656 656 657 def createDemoAssigned Persons() {658 659 //Assigned Person660 def assigned PersonInstance661 662 //Assigned Person#1663 assigned PersonInstance = new AssignedPerson(person: Person.get(4),657 def createDemoAssignedGroups() { 658 659 //AssignedGroup 660 def assignedGroupInstance 661 662 //AssignedGroup #1 663 assignedGroupInstance = new AssignedGroup(personGroup: PersonGroup.get(4), 664 664 task: Task.get(1), 665 665 estimatedHour: 1, 666 666 estimatedMinute: 20) 667 saveAndTest(assigned PersonInstance)668 669 //Assigned Person#2670 assigned PersonInstance = new AssignedPerson(person: Person.get(5),667 saveAndTest(assignedGroupInstance) 668 669 //AssignedGroup #2 670 assignedGroupInstance = new AssignedGroup(personGroup: PersonGroup.get(5), 671 671 task: Task.get(1), 672 672 estimatedHour: 3, 673 673 estimatedMinute: 30) 674 saveAndTest(assigned PersonInstance)674 saveAndTest(assignedGroupInstance) 675 675 } 676 676 -
trunk/grails-app/services/TaskService.groovy
r216 r240 97 97 if(params.taskProcedure) p.taskProcedure = params.taskProcedure 98 98 99 //Set the assigned Persons100 // taskInstance.assigned Persons.each() {99 //Set the assignedGroups 100 // taskInstance.assignedGroups.each() { 101 101 // 102 // def assigned Person = new AssignedPerson(person: it.person,102 // def assignedGroup = new AssignedGroup(person: it.person, 103 103 // task: subTaskInstance, 104 104 // estimatedHour: it.estimatedHour, -
trunk/grails-app/views/assignedGroupDetailed/create.gsp
r147 r240 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Assigned Person</title>7 <title>Create Assigned Group</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Create Assigned Person</h1>11 <h1>Create Assigned Group</h1> 12 12 </div> 13 13 <div class="body"> … … 15 15 <div class="message">${flash.message}</div> 16 16 </g:if> 17 <g:hasErrors bean="${assigned PersonInstance}">17 <g:hasErrors bean="${assignedGroupInstance}"> 18 18 <div class="errors"> 19 <g:renderErrors bean="${assigned PersonInstance}" as="list" />19 <g:renderErrors bean="${assignedGroupInstance}" as="list" /> 20 20 </div> 21 21 </g:hasErrors> 22 22 <g:form action="save" method="post" > 23 <input type="hidden" name="task.id" value="${assigned PersonInstance?.task?.id}" />23 <input type="hidden" name="task.id" value="${assignedGroupInstance?.task?.id}" /> 24 24 <div class="dialog"> 25 25 <table> … … 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="${assignedGroupInstance.task.id}" > 34 ${assignedGroupInstance?.task.encodeAsHTML()} 35 </g:link> 34 36 </td> 35 </tr> 37 </tr> 36 38 37 39 <tr class="prop"> 38 40 <td valign="top" class="name"> 39 <label for="person ">Person:</label>41 <label for="personGroup">Group:</label> 40 42 </td> 41 <td valign="top" class="value ${hasErrors(bean:assigned PersonInstance,field:'person','errors')}">42 <g:select optionKey="id" from="${Person .list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select>43 <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> 44 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${assignedGroupInstance?.personGroup?.id}" ></g:select> 43 45 </td> 44 46 </tr> … … 50 52 51 53 <td valign="top" class="value"> 52 <input class="time ${hasErrors(bean:assigned PersonInstance,field:'estimatedHour','errors')}"54 <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedHour','errors')}" 53 55 type="text" id="estimatedHour" name="estimatedHour" 54 value="${fieldValue(bean:assigned PersonInstance,field:'estimatedHour')}" />56 value="${fieldValue(bean:assignedGroupInstance,field:'estimatedHour')}" /> 55 57 : 56 <input class="time ${hasErrors(bean:assigned PersonInstance,field:'estimatedMinute','errors')}"58 <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedMinute','errors')}" 57 59 type="text" id="estimatedMinute" name="estimatedMinute" 58 value="${fieldValue(bean:assigned PersonInstance,field:'estimatedMinute')}" />59 <g:helpBalloon code="assigned Person.estimatedDuration" />60 value="${fieldValue(bean:assignedGroupInstance,field:'estimatedMinute')}" /> 61 <g:helpBalloon code="assignedGroup.estimatedDuration" /> 60 62 </td> 61 63 </tr> -
trunk/grails-app/views/assignedGroupDetailed/edit.gsp
r147 r240 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit Assigned Person</title>7 <title>Edit AssignedGroup</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Edit Assigned Person</h1>11 <h1>Edit Assigned Group</h1> 12 12 </div> 13 13 <div class="body"> … … 15 15 <div class="message">${flash.message}</div> 16 16 </g:if> 17 <g:hasErrors bean="${assigned PersonInstance}">17 <g:hasErrors bean="${assignedGroupInstance}"> 18 18 <div class="errors"> 19 <g:renderErrors bean="${assigned PersonInstance}" as="list" />19 <g:renderErrors bean="${assignedGroupInstance}" as="list" /> 20 20 </div> 21 21 </g:hasErrors> 22 22 <g:form method="post" > 23 <input type="hidden" name="id" value="${assigned PersonInstance?.id}" />24 <input type="hidden" name="version" value="${assigned PersonInstance?.version}" />23 <input type="hidden" name="id" value="${assignedGroupInstance?.id}" /> 24 <input type="hidden" name="version" value="${assignedGroupInstance?.version}" /> 25 25 <div class="dialog"> 26 26 <table> … … 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="${assignedGroupInstance.task.id}" > 35 ${assignedGroupInstance?.task.encodeAsHTML()} 36 </g:link> 35 37 </td> 36 </tr> 38 </tr> 37 39 38 40 <tr class="prop"> 39 41 <td valign="top" class="name"> 40 <label for="person ">Person:</label>42 <label for="personGroup">Group:</label> 41 43 </td> 42 <td valign="top" class="value ${hasErrors(bean:assigned PersonInstance,field:'person','errors')}">43 <g:select optionKey="id" from="${Person .list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select>44 <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> 45 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${assignedGroupInstance?.personGroup?.id}" ></g:select> 44 46 </td> 45 47 </tr> … … 50 52 </td> 51 53 <td valign="top" class="value"> 52 <input class="time ${hasErrors(bean:assigned PersonInstance,field:'estimatedHour','errors')}"54 <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedHour','errors')}" 53 55 type="text" id="estimatedHour" name="estimatedHour" 54 value="${fieldValue(bean:assigned PersonInstance,field:'estimatedHour')}" />56 value="${fieldValue(bean:assignedGroupInstance,field:'estimatedHour')}" /> 55 57 : 56 <input class="time ${hasErrors(bean:assigned PersonInstance,field:'estimatedMinute','errors')}"58 <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedMinute','errors')}" 57 59 type="text" id="estimatedMinute" name="estimatedMinute" 58 value="${fieldValue(bean:assigned PersonInstance,field:'estimatedMinute')}" />59 <g:helpBalloon code="assigned Person.estimatedDuration" />60 value="${fieldValue(bean:assignedGroupInstance,field:'estimatedMinute')}" /> 61 <g:helpBalloon code="assignedGroup.estimatedDuration" /> 60 62 </td> 61 63 </tr> -
trunk/grails-app/views/assignedGroupDetailed/list.gsp
r147 r240 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Assigned PersonList</title>7 <title>AssignedGroup List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Assigned PersonList</h1>11 <h1>Assigned Group List</h1> 12 12 </div> 13 13 <div class="body"> … … 24 24 <th>Task</th> 25 25 26 <th> Person</th>26 <th>Group</th> 27 27 28 28 <g:sortableColumn property="estimatedHour" title="Estimated Hour" /> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${assigned PersonInstanceList}" status="i" var="assignedPersonInstance">35 <g:each in="${assignedGroupInstanceList}" status="i" var="assignedGroupInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${assigned PersonInstance.id}">${fieldValue(bean:assignedPersonInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${assignedGroupInstance.id}">${fieldValue(bean:assignedGroupInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean:assigned PersonInstance, field:'task')}</td>40 <td>${fieldValue(bean:assignedGroupInstance, field:'task')}</td> 41 41 42 <td>${fieldValue(bean:assigned PersonInstance, field:'person')}</td>42 <td>${fieldValue(bean:assignedGroupInstance, field:'personGroup')}</td> 43 43 44 <td>${fieldValue(bean:assigned PersonInstance, field:'estimatedHour')}</td>44 <td>${fieldValue(bean:assignedGroupInstance, field:'estimatedHour')}</td> 45 45 46 <td>${fieldValue(bean:assigned PersonInstance, field:'estimatedMinute')}</td>46 <td>${fieldValue(bean:assignedGroupInstance, field:'estimatedMinute')}</td> 47 47 48 48 </tr> … … 52 52 </div> 53 53 <div class="paginateButtons"> 54 <g:paginate total="${assigned PersonInstanceTotal}" />54 <g:paginate total="${assignedGroupInstanceTotal}" /> 55 55 </div> 56 56 </div> -
trunk/grails-app/views/assignedGroupDetailed/show.gsp
r147 r240 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show Assigned Person</title>7 <title>Show AssignedGroup</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <h1>Show Assigned Person</h1>11 <h1>Show Assigned Group</h1> 12 12 </div> 13 13 <div class="body"> … … 23 23 <td valign="top" class="name">Id:</td> 24 24 25 <td valign="top" class="value">${fieldValue(bean:assigned PersonInstance, field:'id')}</td>25 <td valign="top" class="value">${fieldValue(bean:assignedGroupInstance, field:'id')}</td> 26 26 27 27 </tr> … … 30 30 <td valign="top" class="name">Task:</td> 31 31 32 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${assigned PersonInstance?.task?.id}">${assignedPersonInstance?.task?.encodeAsHTML()}</g:link></td>32 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${assignedGroupInstance?.task?.id}">${assignedGroupInstance?.task?.encodeAsHTML()}</g:link></td> 33 33 34 34 </tr> 35 35 36 36 <tr class="prop"> 37 <td valign="top" class="name"> Person:</td>37 <td valign="top" class="name">Group:</td> 38 38 39 <td valign="top" class="value"><g:link controller="person " action="show" id="${assignedPersonInstance?.person?.id}">${assignedPersonInstance?.person?.encodeAsHTML()}</g:link></td>39 <td valign="top" class="value"><g:link controller="personGroup" action="show" id="${assignedGroupInstance?.personGroup?.id}">${assignedGroupInstance?.personGroup?.encodeAsHTML()}</g:link></td> 40 40 41 41 </tr> … … 43 43 <tr class="prop"> 44 44 <td valign="top" class="name">Estimated Duration:</td> 45 <td valign="top" class="value">${assigned PersonInstance.estimatedHour}h : ${assignedPersonInstance.estimatedMinute}min</td>45 <td valign="top" class="value">${assignedGroupInstance.estimatedHour}h : ${assignedGroupInstance.estimatedMinute}min</td> 46 46 </tr> 47 47 … … 51 51 <div class="buttons"> 52 52 <g:form> 53 <input type="hidden" name="id" value="${assigned PersonInstance?.id}" />53 <input type="hidden" name="id" value="${assignedGroupInstance?.id}" /> 54 54 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 55 55 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/task/edit.gsp
r181 r240 139 139 <tr class="prop"> 140 140 <td valign="top" class="name"> 141 <label for="assigned Persons">Assigned Persons:</label>142 </td> 143 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assigned Persons','errors')}">144 145 <ul> 146 <g:each var="a" in="${taskInstance?.assigned Persons?}">147 <li><g:link controller="assigned Person" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>148 </g:each> 149 </ul> 150 <g:link controller="assigned Person" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link>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 151 152 152 </td> -
trunk/grails-app/views/task/show.gsp
r181 r240 114 114 115 115 <tr class="prop"> 116 <td valign="top" class="name">Assigned Persons:</td>117 118 <td valign="top" style="text-align:left;" class="value"> 119 <ul> 120 <g:each var="a" in="${taskInstance.assigned Persons}">121 <li><g:link controller="assigned Person" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>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 122 </g:each> 123 123 </ul> -
trunk/grails-app/views/taskDetailed/edit.gsp
r213 r240 151 151 <tr class="prop"> 152 152 <td valign="top" class="name"> 153 <label for="assigned Persons">Assigned Persons:</label>153 <label for="assignedGroups">Assigned Groups:</label> 154 154 </td> 155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assigned Persons','errors')}">155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> 156 156 157 157 <ul> 158 <g:each var="a" in="${taskInstance?.assigned Persons?}">159 <li><g:link controller="assigned PersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>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 160 </g:each> 161 161 </ul> -
trunk/grails-app/views/taskDetailed/show.gsp
r225 r240 183 183 184 184 <tr class="prop"> 185 <td valign="top" class="name">Assigned Persons:</td>185 <td valign="top" class="name">Assigned Groups:</td> 186 186 187 187 <td valign="top" style="text-align:left;" class="value"> 188 188 <ul> 189 <g:each var="a" in="${taskInstance.assigned Persons}">190 <li><g:link controller="assigned PersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>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 191 </g:each> 192 192 </ul> 193 <g:link controller="assigned PersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link>193 <g:link controller="assignedGroupDetailed" params="['task.id':taskInstance?.id]" action="create">Add Assigned Group</g:link> 194 194 </td> 195 195
Note: See TracChangeset
for help on using the changeset viewer.