[84] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 4 | <meta name="layout" content="main" /> |
---|
| 5 | <title>Show Task</title> |
---|
| 6 | </head> |
---|
| 7 | <body> |
---|
| 8 | <div class="nav"> |
---|
| 9 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
[85] | 10 | <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> |
---|
| 11 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
[84] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <h1>Show Task</h1> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
| 18 | <div class="dialog"> |
---|
| 19 | <table> |
---|
| 20 | <tbody> |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | <tr class="prop"> |
---|
| 24 | <td valign="top" class="name">Id:</td> |
---|
| 25 | |
---|
| 26 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
| 27 | |
---|
| 28 | </tr> |
---|
| 29 | |
---|
| 30 | <tr class="prop"> |
---|
| 31 | <td valign="top" class="name">Description:</td> |
---|
| 32 | |
---|
| 33 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
| 34 | |
---|
| 35 | </tr> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name">Comment:</td> |
---|
| 39 | |
---|
| 40 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
| 41 | |
---|
| 42 | </tr> |
---|
| 43 | |
---|
| 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name">Target Start Date:</td> |
---|
| 46 | |
---|
| 47 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd MMM yyyy"/></td> |
---|
| 48 | |
---|
| 49 | </tr> |
---|
| 50 | |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name">Target Completion Date:</td> |
---|
| 53 | |
---|
| 54 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd MMM yyyy"/></td> |
---|
| 55 | |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name">Lead Person:</td> |
---|
| 60 | |
---|
[91] | 61 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
[84] | 62 | |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name">Task Priority:</td> |
---|
| 67 | |
---|
[91] | 68 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
[84] | 69 | |
---|
| 70 | </tr> |
---|
| 71 | |
---|
| 72 | <tr class="prop"> |
---|
| 73 | <td valign="top" class="name">Task Status:</td> |
---|
| 74 | |
---|
[91] | 75 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
---|
[84] | 76 | |
---|
| 77 | </tr> |
---|
| 78 | |
---|
| 79 | <tr class="prop"> |
---|
| 80 | <td valign="top" class="name">Assigned Persons:</td> |
---|
| 81 | |
---|
[91] | 82 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 83 | <ul> |
---|
| 84 | <g:each var="s" in="${taskInstance.assignedPersons}"> |
---|
| 85 | <li>${s?.firstName} ${s?.lastName}</li> |
---|
| 86 | </g:each> |
---|
| 87 | </ul> |
---|
| 88 | </td> |
---|
[84] | 89 | |
---|
| 90 | </tr> |
---|
| 91 | |
---|
| 92 | <tr class="prop"> |
---|
| 93 | <td valign="top" class="name">Is Active:</td> |
---|
| 94 | |
---|
| 95 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> |
---|
| 96 | |
---|
| 97 | </tr> |
---|
| 98 | |
---|
| 99 | <tr class="prop"> |
---|
| 100 | <td valign="top" class="name">Is Approved:</td> |
---|
| 101 | |
---|
| 102 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> |
---|
| 103 | |
---|
| 104 | </tr> |
---|
| 105 | |
---|
| 106 | <tr class="prop"> |
---|
| 107 | <td valign="top" class="name">Is Scheduled:</td> |
---|
| 108 | |
---|
| 109 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> |
---|
| 110 | |
---|
| 111 | </tr> |
---|
| 112 | |
---|
| 113 | <tr class="prop"> |
---|
| 114 | <td valign="top" class="name">Parent Task:</td> |
---|
| 115 | |
---|
[86] | 116 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> |
---|
[84] | 117 | |
---|
| 118 | </tr> |
---|
| 119 | |
---|
| 120 | <tr class="prop"> |
---|
| 121 | <td valign="top" class="name">Sub Tasks:</td> |
---|
| 122 | |
---|
| 123 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 124 | <ul> |
---|
| 125 | <g:each var="s" in="${taskInstance.subTasks}"> |
---|
[86] | 126 | <li><g:link controller="taskDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[84] | 127 | </g:each> |
---|
| 128 | </ul> |
---|
| 129 | </td> |
---|
| 130 | |
---|
| 131 | </tr> |
---|
| 132 | |
---|
| 133 | <tr class="prop"> |
---|
| 134 | <td valign="top" class="name">Task Group:</td> |
---|
| 135 | |
---|
[91] | 136 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
[84] | 137 | |
---|
| 138 | </tr> |
---|
| 139 | |
---|
| 140 | <tr class="prop"> |
---|
| 141 | <td valign="top" class="name">Task Type:</td> |
---|
| 142 | |
---|
[91] | 143 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
[84] | 144 | |
---|
| 145 | </tr> |
---|
| 146 | |
---|
| 147 | </tbody> |
---|
| 148 | </table> |
---|
| 149 | </div> |
---|
| 150 | <div class="buttons"> |
---|
| 151 | <g:form> |
---|
| 152 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
| 153 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 154 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 155 | </g:form> |
---|
| 156 | </div> |
---|
| 157 | |
---|
| 158 | <div class="list"> |
---|
| 159 | <h1>Faults</h1> |
---|
| 160 | <table> |
---|
| 161 | <thead> |
---|
| 162 | <tr> |
---|
[91] | 163 | <th style="color:Black">Comment</th> |
---|
| 164 | <th style="color:Black">Date Done</th> |
---|
| 165 | <th style="color:Black">Entered By</th> |
---|
| 166 | <!-- <g:sortableColumn property="comment" title="Comment" /> |
---|
[84] | 167 | |
---|
| 168 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
| 169 | |
---|
[91] | 170 | <g:sortableColumn property="enteredBy" title="Entered By" />--> |
---|
[84] | 171 | </tr> |
---|
| 172 | </thead> |
---|
| 173 | <tbody> |
---|
| 174 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
| 175 | <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> |
---|
| 176 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 177 | |
---|
| 178 | <td width="65%">${entry.comment}</td> |
---|
| 179 | |
---|
| 180 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
| 181 | |
---|
| 182 | <td>${entry.enteredBy}</td> |
---|
| 183 | </g:if> |
---|
| 184 | |
---|
| 185 | </tr> |
---|
| 186 | </g:each> |
---|
| 187 | </tbody> |
---|
| 188 | </table> |
---|
| 189 | </div> |
---|
| 190 | |
---|
| 191 | <div class="list"> |
---|
| 192 | <h1>Work Done</h1> |
---|
| 193 | <table> |
---|
| 194 | <thead> |
---|
| 195 | <tr> |
---|
[91] | 196 | <th style="color:Black">Comment</th> |
---|
| 197 | <th style="color:Black">Date Done</th> |
---|
| 198 | <th style="color:Black">Entered By</th> |
---|
| 199 | <!-- <g:sortableColumn property="commentW" title="Comment" /> |
---|
[84] | 200 | |
---|
[91] | 201 | <g:sortableColumn property="dateDoneW" title="Date Done" /> |
---|
[84] | 202 | |
---|
[91] | 203 | <g:sortableColumn property="enteredByW" title="Entered By" />--> |
---|
[84] | 204 | </tr> |
---|
| 205 | </thead> |
---|
| 206 | <tbody> |
---|
| 207 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
| 208 | <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> |
---|
| 209 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 210 | |
---|
| 211 | <td width="65%">${entry.comment}</td> |
---|
| 212 | |
---|
| 213 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
| 214 | |
---|
| 215 | <td>${entry.enteredBy}</td> |
---|
| 216 | </g:if> |
---|
| 217 | |
---|
| 218 | </tr> |
---|
| 219 | </g:each> |
---|
| 220 | </tbody> |
---|
| 221 | </table> |
---|
| 222 | </div> |
---|
| 223 | |
---|
[91] | 224 | <br /> |
---|
| 225 | |
---|
| 226 | <div class="buttons"> |
---|
| 227 | <span class="menuButton" style="height:50px"> |
---|
| 228 | <g:link controller="entryDetailed" params="['task.id':taskInstance.id]" action="create">Add Entry</g:link> |
---|
| 229 | </span> |
---|
| 230 | </div> |
---|
| 231 | |
---|
[84] | 232 | </div> |
---|
| 233 | </body> |
---|
| 234 | </html> |
---|