| [84] | 1 |  | 
|---|
 | 2 |  | 
|---|
 | 3 | <html> | 
|---|
 | 4 |     <head> | 
|---|
 | 5 |         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | 
|---|
 | 6 |         <meta name="layout" content="main" /> | 
|---|
| [196] | 7 |         <title>Edit Task #${taskInstance.id}</title> | 
|---|
| [139] | 8 |         <nav:resources override="true"/> | 
|---|
| [147] | 9 |         <resource:dateChooser /> | 
|---|
| [84] | 10 |     </head> | 
|---|
 | 11 |     <body> | 
|---|
 | 12 |         <div class="nav"> | 
|---|
| [139] | 13 |             <nav:renderSubItems group="nav"/> | 
|---|
| [84] | 14 |         </div> | 
|---|
 | 15 |         <div class="body"> | 
|---|
 | 16 |             <g:if test="${flash.message}"> | 
|---|
 | 17 |             <div class="message">${flash.message}</div> | 
|---|
 | 18 |             </g:if> | 
|---|
 | 19 |             <g:hasErrors bean="${taskInstance}"> | 
|---|
 | 20 |             <div class="errors"> | 
|---|
 | 21 |                 <g:renderErrors bean="${taskInstance}" as="list" /> | 
|---|
 | 22 |             </div> | 
|---|
 | 23 |             </g:hasErrors> | 
|---|
 | 24 |             <g:form method="post" > | 
|---|
 | 25 |                 <input type="hidden" name="id" value="${taskInstance?.id}" /> | 
|---|
| [204] | 26 |                 <input type="hidden" name="version" value="${taskInstance?.version}" /> | 
|---|
| [84] | 27 |                 <div class="dialog"> | 
|---|
 | 28 |                     <table> | 
|---|
 | 29 |                         <tbody> | 
|---|
 | 30 |  | 
|---|
 | 31 |                             <tr class="prop"> | 
|---|
 | 32 |                                 <td valign="top" class="name"> | 
|---|
| [86] | 33 |                                     <label for="id">Id:</label> | 
|---|
 | 34 |                                 </td> | 
|---|
 | 35 |                                 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> | 
|---|
 | 36 |                             </tr> | 
|---|
 | 37 |  | 
|---|
 | 38 |                             <tr class="prop"> | 
|---|
 | 39 |                                 <td valign="top" class="name"> | 
|---|
| [84] | 40 |                                     <label for="description">Description:</label> | 
|---|
 | 41 |                                 </td> | 
|---|
 | 42 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> | 
|---|
| [91] | 43 |                                     <input type="text" style="width:450px" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> | 
|---|
| [84] | 44 |                                 </td> | 
|---|
| [86] | 45 |                             </tr> | 
|---|
 | 46 |  | 
|---|
 | 47 |                             <tr class="prop"> | 
|---|
 | 48 |                                 <td valign="top" class="name"> | 
|---|
 | 49 |                                     <label for="comment">Comment:</label> | 
|---|
 | 50 |                                 </td> | 
|---|
 | 51 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> | 
|---|
 | 52 |                                     <textarea style="width:450px" rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> | 
|---|
 | 53 |                                 </td> | 
|---|
 | 54 |                             </tr> | 
|---|
| [84] | 55 |                          | 
|---|
 | 56 |                             <tr class="prop"> | 
|---|
 | 57 |                                 <td valign="top" class="name"> | 
|---|
 | 58 |                                     <label for="targetStartDate">Target Start Date:</label> | 
|---|
 | 59 |                                 </td> | 
|---|
 | 60 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> | 
|---|
| [147] | 61 |                                     <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance?.targetStartDate}" /> | 
|---|
| [84] | 62 |                                 </td> | 
|---|
 | 63 |                             </tr> | 
|---|
| [86] | 64 |  | 
|---|
 | 65 |                             <tr class="prop"> | 
|---|
 | 66 |                                 <td valign="top" class="name"> | 
|---|
 | 67 |                                     <label for="targetCompletionDate">Target Completion Date:</label> | 
|---|
 | 68 |                                 </td> | 
|---|
 | 69 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> | 
|---|
| [147] | 70 |                                     <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance?.targetCompletionDate}" /> | 
|---|
| [86] | 71 |                                 </td> | 
|---|
 | 72 |                             </tr>  | 
|---|
| [84] | 73 |                          | 
|---|
 | 74 |                             <tr class="prop"> | 
|---|
 | 75 |                                 <td valign="top" class="name"> | 
|---|
 | 76 |                                     <label for="leadPerson">Lead Person:</label> | 
|---|
 | 77 |                                 </td> | 
|---|
 | 78 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> | 
|---|
 | 79 |                                     <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> | 
|---|
 | 80 |                                 </td> | 
|---|
| [168] | 81 |                             </tr> | 
|---|
| [84] | 82 |                          | 
|---|
 | 83 |                             <tr class="prop"> | 
|---|
 | 84 |                                 <td valign="top" class="name"> | 
|---|
| [168] | 85 |                                     <label for="primaryAsset">Primary Asset:</label> | 
|---|
 | 86 |                                 </td> | 
|---|
 | 87 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> | 
|---|
 | 88 |                                     <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}"  noSelection="['null':'--None--']"></g:select> | 
|---|
 | 89 |                                     <g:helpBalloon code="task.primaryAsset" /> | 
|---|
 | 90 |                                 </td> | 
|---|
 | 91 |                             </tr> | 
|---|
 | 92 |  | 
|---|
 | 93 |                             <tr class="prop"> | 
|---|
 | 94 |                                 <td valign="top" class="name"> | 
|---|
 | 95 |                                     <label for="associatedAssets">Associated Assets:</label> | 
|---|
 | 96 |                                 </td> | 
|---|
 | 97 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> | 
|---|
 | 98 |                                     <g:select id="associatedAssets" name="associatedAssets" | 
|---|
 | 99 |                                                     from="${Asset.list()}" | 
|---|
 | 100 |                                                     optionKey="id" size="5" multiple="yes"  | 
|---|
 | 101 |                                                     value="${taskInstance?.associatedAssets.id}"  noSelection="['':'--None--']"/> | 
|---|
 | 102 |                                     <g:helpBalloon  class="helpballoon" code="task.associatedAssets" /> | 
|---|
 | 103 |                                 </td> | 
|---|
 | 104 |                             </tr> | 
|---|
 | 105 |                          | 
|---|
 | 106 |                             <tr class="prop"> | 
|---|
 | 107 |                                 <td valign="top" class="name"> | 
|---|
| [84] | 108 |                                     <label for="taskPriority">Task Priority:</label> | 
|---|
 | 109 |                                 </td> | 
|---|
 | 110 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> | 
|---|
 | 111 |                                     <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> | 
|---|
 | 112 |                                 </td> | 
|---|
 | 113 |                             </tr>  | 
|---|
 | 114 |                          | 
|---|
 | 115 |                             <tr class="prop"> | 
|---|
 | 116 |                                 <td valign="top" class="name"> | 
|---|
| [181] | 117 |                                     <label for="scheduled">Scheduled:</label> | 
|---|
| [84] | 118 |                                 </td> | 
|---|
| [181] | 119 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduled','errors')}"> | 
|---|
 | 120 |                                     <g:checkBox name="scheduled" value="${taskInstance?.scheduled}" ></g:checkBox> | 
|---|
| [84] | 121 |                                 </td> | 
|---|
| [86] | 122 |                             </tr> | 
|---|
| [84] | 123 |  | 
|---|
 | 124 |                             <tr class="prop"> | 
|---|
 | 125 |                                 <td valign="top" class="name"> | 
|---|
| [86] | 126 |                                     <label for="parentTask">Parent Task:</label> | 
|---|
| [84] | 127 |                                 </td> | 
|---|
| [86] | 128 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> | 
|---|
| [168] | 129 |                                     <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'--None--']"></g:select> | 
|---|
| [84] | 130 |                                 </td> | 
|---|
| [86] | 131 |                             </tr> | 
|---|
| [84] | 132 |                          | 
|---|
 | 133 |                             <tr class="prop"> | 
|---|
 | 134 |                                 <td valign="top" class="name"> | 
|---|
 | 135 |                                     <label for="taskGroup">Task Group:</label> | 
|---|
 | 136 |                                 </td> | 
|---|
 | 137 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> | 
|---|
 | 138 |                                     <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> | 
|---|
 | 139 |                                 </td> | 
|---|
 | 140 |                             </tr>  | 
|---|
 | 141 |                          | 
|---|
 | 142 |                             <tr class="prop"> | 
|---|
 | 143 |                                 <td valign="top" class="name"> | 
|---|
 | 144 |                                     <label for="taskType">Task Type:</label> | 
|---|
 | 145 |                                 </td> | 
|---|
 | 146 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> | 
|---|
 | 147 |                                     <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> | 
|---|
 | 148 |                                 </td> | 
|---|
| [96] | 149 |                             </tr> | 
|---|
 | 150 |  | 
|---|
 | 151 |                             <tr class="prop"> | 
|---|
 | 152 |                                 <td valign="top" class="name"> | 
|---|
 | 153 |                                     <label for="assignedPersons">Assigned Persons:</label> | 
|---|
 | 154 |                                 </td> | 
|---|
 | 155 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> | 
|---|
 | 156 |                                      | 
|---|
| [181] | 157 |                                 <ul> | 
|---|
 | 158 |                                 <g:each var="a" in="${taskInstance?.assignedPersons?}"> | 
|---|
 | 159 |                                     <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> | 
|---|
 | 160 |                                 </g:each> | 
|---|
 | 161 |                                 </ul> | 
|---|
| [96] | 162 |  | 
|---|
 | 163 |                                 </td> | 
|---|
| [181] | 164 |                             </tr> | 
|---|
| [96] | 165 |  | 
|---|
| [84] | 166 |                         </tbody> | 
|---|
 | 167 |                     </table> | 
|---|
 | 168 |                 </div> | 
|---|
 | 169 |                 <div class="buttons"> | 
|---|
 | 170 |                     <span class="button"><g:actionSubmit class="save" value="Update" /></span> | 
|---|
| [213] | 171 |                     <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> | 
|---|
| [181] | 172 |                     <span class="button"><g:actionSubmit class="trash" onclick="return confirm('Are you sure?');" value="Trash" /></span> | 
|---|
| [84] | 173 |                 </div> | 
|---|
 | 174 |             </g:form> | 
|---|
 | 175 |         </div> | 
|---|
 | 176 |     </body> | 
|---|
 | 177 | </html> | 
|---|