| [822] | 1 | |
|---|
| 2 | <div class="dialog"> |
|---|
| 3 | <table> |
|---|
| 4 | <tbody> |
|---|
| 5 | |
|---|
| 6 | <g:if test="${taskInstance.parentTask}"> |
|---|
| 7 | <tr class="prop"> |
|---|
| 8 | <td valign="top" class="name">Parent Task:</td> |
|---|
| 9 | |
|---|
| 10 | <td valign="top" class="value"> |
|---|
| 11 | <g:link controller="taskDetailed" action="show" id="${taskInstance.parentTask.id}"> |
|---|
| 12 | ${taskInstance.parentTask.encodeAsHTML()} |
|---|
| 13 | </g:link> |
|---|
| 14 | </td> |
|---|
| 15 | |
|---|
| 16 | </tr> |
|---|
| 17 | </g:if> |
|---|
| 18 | |
|---|
| 19 | <tr class="prop"> |
|---|
| 20 | <td valign="top" class="name">Comment:</td> |
|---|
| 21 | |
|---|
| 22 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
|---|
| 23 | |
|---|
| 24 | </tr> |
|---|
| 25 | |
|---|
| 26 | <tr class="prop"> |
|---|
| 27 | <td valign="top" class="name">Target Start:</td> |
|---|
| 28 | |
|---|
| 29 | <td valign="top" class="value"> |
|---|
| 30 | <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
|---|
| 31 | </td> |
|---|
| 32 | |
|---|
| 33 | </tr> |
|---|
| 34 | |
|---|
| 35 | <tr class="prop"> |
|---|
| 36 | <td valign="top" class="name">Target Completion:</td> |
|---|
| 37 | |
|---|
| 38 | <td valign="top" class="value"> |
|---|
| 39 | <g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
|---|
| 40 | </td> |
|---|
| 41 | |
|---|
| 42 | </tr> |
|---|
| 43 | |
|---|
| 44 | <tr class="prop"> |
|---|
| 45 | <td valign="top" class="name"> |
|---|
| 46 | |
|---|
| 47 | <jsUtil:toggleControl toggleId="modifications" |
|---|
| 48 | imageId="modificationsImg" |
|---|
| 49 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}" |
|---|
| 50 | openImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}" |
|---|
| 51 | effect="fade" |
|---|
| 52 | text="Modifications" |
|---|
| 53 | /> |
|---|
| 54 | </td> |
|---|
| 55 | |
|---|
| 56 | <td valign="top" style="text-align:left;" class="value"> |
|---|
| 57 | <div id="modifications" style="display:none;"> |
|---|
| 58 | <ul> |
|---|
| 59 | <g:each var="a" in="${taskModificationList}"> |
|---|
| 60 | <li>${a?.encodeAsHTML()}</li> |
|---|
| 61 | </g:each> |
|---|
| 62 | </ul> |
|---|
| 63 | </div> |
|---|
| 64 | </td> |
|---|
| 65 | </tr> |
|---|
| 66 | |
|---|
| 67 | <tr class="prop"> |
|---|
| 68 | <td valign="top" class="name">Primary Asset:</td> |
|---|
| 69 | |
|---|
| 70 | <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> |
|---|
| 71 | |
|---|
| 72 | </tr> |
|---|
| 73 | |
|---|
| 74 | <tr class="prop"> |
|---|
| 75 | <td valign="top" class="name">Associated Assets:</td> |
|---|
| 76 | |
|---|
| 77 | <td valign="top" style="text-align:left;" class="value"> |
|---|
| 78 | <ul> |
|---|
| 79 | <g:each var="a" in="${taskInstance.associatedAssets}"> |
|---|
| 80 | <li>${a?.encodeAsHTML()}</li> |
|---|
| 81 | </g:each> |
|---|
| 82 | </ul> |
|---|
| 83 | </td> |
|---|
| 84 | |
|---|
| 85 | </tr> |
|---|
| 86 | |
|---|
| 87 | <tr class="prop"> |
|---|
| 88 | <td valign="top" class="name">Priority:</td> |
|---|
| 89 | |
|---|
| 90 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
|---|
| 91 | |
|---|
| 92 | </tr> |
|---|
| 93 | |
|---|
| 94 | <tr class="prop"> |
|---|
| 95 | <td valign="top" class="name">Positive Fault:</td> |
|---|
| 96 | |
|---|
| 97 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'positiveFault')}</td> |
|---|
| 98 | |
|---|
| 99 | </tr> |
|---|
| 100 | |
|---|
| 101 | <tr class="prop"> |
|---|
| 102 | <td valign="top" class="name">Group:</td> |
|---|
| 103 | |
|---|
| 104 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
|---|
| 105 | |
|---|
| 106 | </tr> |
|---|
| 107 | |
|---|
| 108 | <tr class="prop"> |
|---|
| 109 | <td valign="top" class="name">Type:</td> |
|---|
| 110 | |
|---|
| 111 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
|---|
| 112 | |
|---|
| 113 | </tr> |
|---|
| 114 | |
|---|
| 115 | <tr class="prop"> |
|---|
| 116 | <td valign="top" class="name">Lead Person:</td> |
|---|
| 117 | |
|---|
| 118 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
|---|
| 119 | |
|---|
| 120 | </tr> |
|---|
| 121 | |
|---|
| 122 | <tr class="prop"> |
|---|
| 123 | <td valign="top" class="name">Assigned Groups:</td> |
|---|
| 124 | |
|---|
| 125 | <td valign="top" style="text-align:left;" class="value"> |
|---|
| 126 | <ul> |
|---|
| 127 | <g:each var="a" in="${assignedGroupList}"> |
|---|
| 128 | <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
|---|
| 129 | </g:each> |
|---|
| 130 | </ul> |
|---|
| 131 | <g:link controller="assignedGroupDetailed" action="create" params="['task.id':taskInstance.id]">+Add Group</g:link> |
|---|
| 132 | </td> |
|---|
| 133 | |
|---|
| 134 | </tr> |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | <tr class="prop"> |
|---|
| 138 | <td valign="top" class="name">Assigned Persons:</td> |
|---|
| 139 | |
|---|
| 140 | <td valign="top" style="text-align:left;" class="value"> |
|---|
| 141 | <ul> |
|---|
| 142 | <g:each var="a" in="${assignedPersonList}"> |
|---|
| 143 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
|---|
| 144 | </g:each> |
|---|
| 145 | </ul> |
|---|
| 146 | <g:link controller="assignedPersonDetailed" action="create" params="['task.id':taskInstance?.id]">+Add Person</g:link> |
|---|
| 147 | </td> |
|---|
| 148 | |
|---|
| 149 | </tr> |
|---|
| 150 | |
|---|
| 151 | </tbody> |
|---|
| 152 | </table> |
|---|
| 153 | </div> |
|---|
| 154 | |
|---|
| 155 | <div class="buttons"> |
|---|
| 156 | <g:form> |
|---|
| 157 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
|---|
| 158 | |
|---|
| 159 | <g:if test="${taskInstance.trash}" > |
|---|
| 160 | <span class="button"><g:actionSubmit class="restore" onclick="return confirm('Are you sure?');" value="Restore"/></span> |
|---|
| 161 | </g:if> |
|---|
| 162 | <g:else> |
|---|
| 163 | |
|---|
| 164 | <g:if test="${taskInstance.taskStatus.id != 3}" > |
|---|
| 165 | |
|---|
| 166 | <g:if test="${taskInstance.attentionFlag}" > |
|---|
| 167 | <span class="button"><g:actionSubmit class="flag" value="Clear" action="clearAttentionFlag"/></span> |
|---|
| 168 | </g:if> |
|---|
| 169 | <g:else> |
|---|
| 170 | <span class="button"><g:actionSubmit class="flag" value="Unresolved" action="setAttentionFlag"/></span> |
|---|
| 171 | <g:helpBalloon class="helpballoon" code="task.status.unresolved" /> |
|---|
| 172 | </g:else> |
|---|
| 173 | |
|---|
| 174 | <span class="button"> |
|---|
| 175 | <g:if test="${taskInstance.attentionFlag}" > |
|---|
| 176 | <g:actionSubmit class="complete" |
|---|
| 177 | value="Resolved" |
|---|
| 178 | onclick="return confirm('${message(code:'task.clear.attention.flag.on.completion.confirm')}');" |
|---|
| 179 | action="complete"/> |
|---|
| 180 | </g:if> |
|---|
| 181 | <g:else> |
|---|
| 182 | <g:actionSubmit class="complete" value="Resolved" action="complete"/> |
|---|
| 183 | </g:else> |
|---|
| 184 | </span> |
|---|
| 185 | <g:helpBalloon class="helpballoon" code="task.status.resolved" /> |
|---|
| 186 | |
|---|
| 187 | <g:if test="${taskInstance.approved}" > |
|---|
| 188 | <span class="button"><g:actionSubmit class="renegeApproval" value="Renege Approval" action="renegeApproval" /></span> |
|---|
| 189 | </g:if> |
|---|
| 190 | <g:else> |
|---|
| 191 | <span class="button"><g:actionSubmit class="approve" value="Approve" /></span> |
|---|
| 192 | </g:else> |
|---|
| 193 | |
|---|
| 194 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
|---|
| 195 | <span class="button"> |
|---|
| 196 | <g:actionSubmit class="trash" |
|---|
| 197 | onclick="return confirm('${message(code:'task.trash.confirm')}');" |
|---|
| 198 | value="Trash" /> |
|---|
| 199 | </span> |
|---|
| 200 | |
|---|
| 201 | </g:if> |
|---|
| 202 | <g:else> |
|---|
| 203 | <span class="button"><g:actionSubmit class="reopen" value="Reopen" /></span> |
|---|
| 204 | </g:else> |
|---|
| 205 | |
|---|
| 206 | </g:else> |
|---|
| 207 | </g:form> |
|---|
| 208 | </div> |
|---|
| 209 | |
|---|
| 210 | <br /> |
|---|
| 211 | |
|---|
| [846] | 212 | <div id="entryFaultContainer"> |
|---|
| 213 | <g:if test="${entryFaultList.isEmpty()}"> |
|---|
| 214 | <h1>No Faults</h1> |
|---|
| 215 | <br /> |
|---|
| 216 | </g:if> |
|---|
| 217 | <g:else> |
|---|
| 218 | <g:render template="/entryDetailed/list" |
|---|
| 219 | model="['entryList':entryFaultList]" /> |
|---|
| 220 | </g:else> |
|---|
| 221 | </div> |
|---|
| [822] | 222 | |
|---|
| [846] | 223 | <br /> |
|---|
| [822] | 224 | |
|---|
| [846] | 225 | <div id="createEntryFaultContainer" style="display:none;"></div> |
|---|
| [822] | 226 | |
|---|
| [846] | 227 | <div style="text-align:right;" id="entryFaultButton"> |
|---|
| 228 | <span class="buttons"> |
|---|
| 229 | <input type="button" |
|---|
| 230 | class="add" |
|---|
| 231 | value="Add Fault" |
|---|
| 232 | onclick="getCreateEntryForm(jQuery('#entryFaultContainer'), |
|---|
| 233 | jQuery('#createEntryFaultContainer'), |
|---|
| 234 | jQuery('#entryFaultButton'), |
|---|
| 235 | {taskId: ${taskInstance?.id}, entryTypeId: 1})" /> |
|---|
| 236 | </span> |
|---|
| 237 | </div> |
|---|
| [822] | 238 | |
|---|
| [846] | 239 | <br /> |
|---|
| [822] | 240 | |
|---|
| [846] | 241 | <div id="entryCauseContainer"> |
|---|
| 242 | <g:if test="${entryCauseList.isEmpty()}"> |
|---|
| 243 | <h1>No Causes</h1> |
|---|
| 244 | <br /> |
|---|
| 245 | </g:if> |
|---|
| 246 | <g:else> |
|---|
| 247 | <g:render template="/entryDetailed/list" |
|---|
| 248 | model="['entryList':entryCauseList]" /> |
|---|
| 249 | </g:else> |
|---|
| [822] | 250 | </div> |
|---|
| 251 | |
|---|
| 252 | <br /> |
|---|
| 253 | |
|---|
| [846] | 254 | <div id="createEntryCauseContainer" style="display:none;"></div> |
|---|
| [822] | 255 | |
|---|
| [846] | 256 | <div style="text-align:right;" id="entryCauseButton"> |
|---|
| 257 | <span class="buttons"> |
|---|
| 258 | <input type="button" |
|---|
| 259 | class="add" |
|---|
| 260 | value="Add Cause" |
|---|
| 261 | onclick="getCreateEntryForm(jQuery('#entryCauseContainer'), |
|---|
| 262 | jQuery('#createEntryCauseContainer'), |
|---|
| 263 | jQuery('#entryCauseButton'), |
|---|
| 264 | {taskId: ${taskInstance?.id}, entryTypeId: 2})" /> |
|---|
| 265 | </span> |
|---|
| [822] | 266 | </div> |
|---|
| 267 | |
|---|
| 268 | <br /> |
|---|
| 269 | |
|---|
| [833] | 270 | <div id="workDoneContainer"> |
|---|
| 271 | <g:if test="${entryWorkDoneList.isEmpty()}"> |
|---|
| 272 | <h1>No Work Done</h1> |
|---|
| 273 | <br /> |
|---|
| 274 | </g:if> |
|---|
| 275 | <g:else> |
|---|
| 276 | <g:render template="/entryDetailed/list" |
|---|
| 277 | model="['entryList':entryWorkDoneList]" /> |
|---|
| 278 | </g:else> |
|---|
| 279 | </div> |
|---|
| [822] | 280 | |
|---|
| [833] | 281 | <br /> |
|---|
| [822] | 282 | |
|---|
| [833] | 283 | <div id="createWorkDoneContainer" style="display:none;"></div> |
|---|
| [822] | 284 | |
|---|
| [833] | 285 | <div style="text-align:right;" id="workDoneButton"> |
|---|
| 286 | <span class="buttons"> |
|---|
| 287 | <input type="button" |
|---|
| 288 | class="add" |
|---|
| 289 | value="Add Work Done" |
|---|
| 290 | onclick="getCreateEntryForm(jQuery('#workDoneContainer'), |
|---|
| 291 | jQuery('#createWorkDoneContainer'), |
|---|
| 292 | jQuery('#workDoneButton'), |
|---|
| 293 | {taskId: ${taskInstance?.id}, entryTypeId: 3})" /> |
|---|
| 294 | </span> |
|---|
| [823] | 295 | </div> |
|---|