[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">Is Active:</td> |
---|
| 81 | |
---|
| 82 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> |
---|
| 83 | |
---|
| 84 | </tr> |
---|
| 85 | |
---|
| 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name">Is Approved:</td> |
---|
| 88 | |
---|
| 89 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> |
---|
| 90 | |
---|
| 91 | </tr> |
---|
| 92 | |
---|
| 93 | <tr class="prop"> |
---|
| 94 | <td valign="top" class="name">Is Scheduled:</td> |
---|
| 95 | |
---|
| 96 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> |
---|
| 97 | |
---|
| 98 | </tr> |
---|
| 99 | |
---|
| 100 | <tr class="prop"> |
---|
| 101 | <td valign="top" class="name">Parent Task:</td> |
---|
| 102 | |
---|
[86] | 103 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> |
---|
[84] | 104 | |
---|
| 105 | </tr> |
---|
| 106 | |
---|
| 107 | <tr class="prop"> |
---|
| 108 | <td valign="top" class="name">Sub Tasks:</td> |
---|
| 109 | |
---|
| 110 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 111 | <ul> |
---|
| 112 | <g:each var="s" in="${taskInstance.subTasks}"> |
---|
[86] | 113 | <li><g:link controller="taskDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[84] | 114 | </g:each> |
---|
| 115 | </ul> |
---|
| 116 | </td> |
---|
| 117 | |
---|
| 118 | </tr> |
---|
| 119 | |
---|
| 120 | <tr class="prop"> |
---|
| 121 | <td valign="top" class="name">Task Group:</td> |
---|
| 122 | |
---|
[91] | 123 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
[84] | 124 | |
---|
| 125 | </tr> |
---|
| 126 | |
---|
| 127 | <tr class="prop"> |
---|
| 128 | <td valign="top" class="name">Task Type:</td> |
---|
| 129 | |
---|
[91] | 130 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
[84] | 131 | |
---|
| 132 | </tr> |
---|
[96] | 133 | |
---|
| 134 | <tr class="prop"> |
---|
| 135 | <td valign="top" class="name">Assigned Persons:</td> |
---|
| 136 | |
---|
| 137 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 138 | <ul> |
---|
| 139 | <g:each var="a" in="${taskInstance.assignedPersons}"> |
---|
| 140 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 141 | </g:each> |
---|
| 142 | </ul> |
---|
| 143 | </td> |
---|
| 144 | |
---|
| 145 | </tr> |
---|
[84] | 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> |
---|
[106] | 163 | <th>Comment</th> |
---|
| 164 | <th>Date Done</th> |
---|
| 165 | <th>Duration</th> |
---|
| 166 | <th>Entered By</th> |
---|
| 167 | <th></th> |
---|
[98] | 168 | |
---|
[91] | 169 | <!-- <g:sortableColumn property="comment" title="Comment" /> |
---|
[84] | 170 | |
---|
| 171 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
| 172 | |
---|
[91] | 173 | <g:sortableColumn property="enteredBy" title="Entered By" />--> |
---|
[84] | 174 | </tr> |
---|
| 175 | </thead> |
---|
| 176 | <tbody> |
---|
| 177 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
| 178 | <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> |
---|
| 179 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 180 | |
---|
[106] | 181 | <td style="width:65%">${entry.comment}</td> |
---|
[84] | 182 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
[98] | 183 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
[84] | 184 | <td>${entry.enteredBy}</td> |
---|
[106] | 185 | <td> |
---|
| 186 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 187 | <img src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 188 | </g:link> |
---|
| 189 | </td> |
---|
[98] | 190 | |
---|
[84] | 191 | </g:if> |
---|
| 192 | |
---|
| 193 | </tr> |
---|
| 194 | </g:each> |
---|
| 195 | </tbody> |
---|
| 196 | </table> |
---|
| 197 | </div> |
---|
| 198 | |
---|
| 199 | <div class="list"> |
---|
| 200 | <h1>Work Done</h1> |
---|
| 201 | <table> |
---|
| 202 | <thead> |
---|
| 203 | <tr> |
---|
[106] | 204 | <th>Comment</th> |
---|
| 205 | <th>Date Done</th> |
---|
| 206 | <th>Duration</th> |
---|
| 207 | <th>Entered By</th> |
---|
| 208 | <th></th> |
---|
[91] | 209 | <!-- <g:sortableColumn property="commentW" title="Comment" /> |
---|
[84] | 210 | |
---|
[91] | 211 | <g:sortableColumn property="dateDoneW" title="Date Done" /> |
---|
[84] | 212 | |
---|
[91] | 213 | <g:sortableColumn property="enteredByW" title="Entered By" />--> |
---|
[84] | 214 | </tr> |
---|
| 215 | </thead> |
---|
| 216 | <tbody> |
---|
| 217 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
| 218 | <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> |
---|
| 219 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 220 | |
---|
| 221 | <td width="65%">${entry.comment}</td> |
---|
| 222 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
[98] | 223 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
[84] | 224 | <td>${entry.enteredBy}</td> |
---|
[106] | 225 | <td> |
---|
| 226 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 227 | <img src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 228 | </g:link> |
---|
| 229 | </td> |
---|
[84] | 230 | </g:if> |
---|
| 231 | |
---|
| 232 | </tr> |
---|
| 233 | </g:each> |
---|
| 234 | </tbody> |
---|
| 235 | </table> |
---|
| 236 | </div> |
---|
| 237 | |
---|
[91] | 238 | <br /> |
---|
| 239 | |
---|
| 240 | <div class="buttons"> |
---|
[98] | 241 | <g:form controller="entryDetailed"> |
---|
| 242 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 243 | <span class="button"> |
---|
[106] | 244 | <g:actionSubmit value="Add Entry" action="create" class="add"/> |
---|
[98] | 245 | </span> |
---|
| 246 | </g:form> |
---|
[91] | 247 | </div> |
---|
| 248 | |
---|
[84] | 249 | </div> |
---|
| 250 | </body> |
---|
| 251 | </html> |
---|