[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> |
---|
[139] | 6 | <nav:resources override="true"/> |
---|
[126] | 7 | <resource:tabView skin="tabviewCustom" /> |
---|
[84] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[139] | 11 | <nav:renderSubItems group="nav"/> |
---|
[84] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:if test="${flash.message}"> |
---|
| 15 | <div class="message">${flash.message}</div> |
---|
| 16 | </g:if> |
---|
[133] | 17 | <g:hasErrors bean="${taskProcedureInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${taskProcedureInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
[126] | 22 | |
---|
[131] | 23 | <richui:tabView id="tabView"> |
---|
[126] | 24 | |
---|
| 25 | <richui:tabLabels> |
---|
[133] | 26 | <richui:tabLabel selected="${showTaskTab}" title="Task #${taskInstance.id}" /> |
---|
| 27 | <richui:tabLabel selected="${showProcedureTab}" title="Procedure" /> |
---|
| 28 | <richui:tabLabel selected="${showRecurrenceTab}" title="Recurrence" /> |
---|
| 29 | <richui:tabLabel selected="${showInventoryTab}" title="Inventory" /> |
---|
| 30 | <richui:tabLabel selected="${showSubTasksTab}" title="Sub Tasks" /> |
---|
[126] | 31 | </richui:tabLabels> |
---|
[131] | 32 | |
---|
[126] | 33 | <richui:tabContents> |
---|
[131] | 34 | |
---|
| 35 | <!-- Start Task tab --> |
---|
[126] | 36 | <richui:tabContent> |
---|
[153] | 37 | |
---|
[131] | 38 | <div class="dialog"> |
---|
| 39 | <table> |
---|
| 40 | <tbody> |
---|
[153] | 41 | |
---|
[131] | 42 | <tr class="prop"> |
---|
| 43 | <td valign="top" class="name">Id:</td> |
---|
[153] | 44 | |
---|
[131] | 45 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
[153] | 46 | |
---|
[131] | 47 | </tr> |
---|
[153] | 48 | |
---|
[131] | 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name">Description:</td> |
---|
[153] | 51 | |
---|
[131] | 52 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
[153] | 53 | |
---|
[131] | 54 | </tr> |
---|
[153] | 55 | |
---|
[131] | 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name">Comment:</td> |
---|
[153] | 58 | |
---|
[131] | 59 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
[153] | 60 | |
---|
[131] | 61 | </tr> |
---|
[153] | 62 | |
---|
[131] | 63 | <tr class="prop"> |
---|
| 64 | <td valign="top" class="name">Target Start Date:</td> |
---|
[153] | 65 | |
---|
[139] | 66 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
[153] | 67 | |
---|
[131] | 68 | </tr> |
---|
[153] | 69 | |
---|
[131] | 70 | <tr class="prop"> |
---|
| 71 | <td valign="top" class="name">Target Completion Date:</td> |
---|
[153] | 72 | |
---|
[139] | 73 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
[153] | 74 | |
---|
[131] | 75 | </tr> |
---|
[153] | 76 | |
---|
[131] | 77 | <tr class="prop"> |
---|
| 78 | <td valign="top" class="name">Lead Person:</td> |
---|
[153] | 79 | |
---|
[131] | 80 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
[153] | 81 | |
---|
[131] | 82 | </tr> |
---|
[153] | 83 | |
---|
[131] | 84 | <tr class="prop"> |
---|
| 85 | <td valign="top" class="name">Task Priority:</td> |
---|
[153] | 86 | |
---|
[131] | 87 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
[153] | 88 | |
---|
[131] | 89 | </tr> |
---|
[153] | 90 | |
---|
[131] | 91 | <tr class="prop"> |
---|
| 92 | <td valign="top" class="name">Task Status:</td> |
---|
[153] | 93 | |
---|
[131] | 94 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
---|
[153] | 95 | |
---|
[131] | 96 | </tr> |
---|
[153] | 97 | |
---|
[131] | 98 | <tr class="prop"> |
---|
| 99 | <td valign="top" class="name">Is Active:</td> |
---|
[153] | 100 | |
---|
[131] | 101 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> |
---|
[153] | 102 | |
---|
[131] | 103 | </tr> |
---|
[153] | 104 | |
---|
[131] | 105 | <tr class="prop"> |
---|
| 106 | <td valign="top" class="name">Is Approved:</td> |
---|
[153] | 107 | |
---|
[131] | 108 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> |
---|
[153] | 109 | |
---|
[131] | 110 | </tr> |
---|
[153] | 111 | |
---|
[131] | 112 | <tr class="prop"> |
---|
| 113 | <td valign="top" class="name">Is Scheduled:</td> |
---|
[153] | 114 | |
---|
[131] | 115 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> |
---|
[153] | 116 | |
---|
[131] | 117 | </tr> |
---|
[153] | 118 | |
---|
[131] | 119 | <tr class="prop"> |
---|
| 120 | <td valign="top" class="name">Parent Task:</td> |
---|
[153] | 121 | |
---|
[131] | 122 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> |
---|
[153] | 123 | |
---|
[131] | 124 | </tr> |
---|
[153] | 125 | |
---|
[131] | 126 | <tr class="prop"> |
---|
| 127 | <td valign="top" class="name">Task Group:</td> |
---|
[153] | 128 | |
---|
[131] | 129 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
[153] | 130 | |
---|
[131] | 131 | </tr> |
---|
[153] | 132 | |
---|
[131] | 133 | <tr class="prop"> |
---|
| 134 | <td valign="top" class="name">Task Type:</td> |
---|
[153] | 135 | |
---|
[131] | 136 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
[153] | 137 | |
---|
[131] | 138 | </tr> |
---|
[153] | 139 | |
---|
[131] | 140 | <tr class="prop"> |
---|
| 141 | <td valign="top" class="name">Assigned Persons:</td> |
---|
[153] | 142 | |
---|
[131] | 143 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 144 | <ul> |
---|
| 145 | <g:each var="a" in="${taskInstance.assignedPersons}"> |
---|
| 146 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 147 | </g:each> |
---|
| 148 | </ul> |
---|
[134] | 149 | <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> |
---|
[131] | 150 | </td> |
---|
[153] | 151 | |
---|
[131] | 152 | </tr> |
---|
[153] | 153 | |
---|
[131] | 154 | </tbody> |
---|
| 155 | </table> |
---|
| 156 | </div> |
---|
[153] | 157 | |
---|
[131] | 158 | <div class="buttons"> |
---|
| 159 | <g:form> |
---|
| 160 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
| 161 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 162 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 163 | </g:form> |
---|
| 164 | </div> |
---|
[153] | 165 | |
---|
[131] | 166 | <div class="list"> |
---|
| 167 | <h1>Faults</h1> |
---|
| 168 | <table> |
---|
| 169 | <thead> |
---|
| 170 | <tr> |
---|
| 171 | <th>Comment</th> |
---|
| 172 | <th>Date Done</th> |
---|
| 173 | <th>Duration</th> |
---|
| 174 | <th>Entered By</th> |
---|
| 175 | <th></th> |
---|
[153] | 176 | |
---|
[131] | 177 | <!-- <g:sortableColumn property="comment" title="Comment" /> |
---|
[153] | 178 | |
---|
[131] | 179 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
[153] | 180 | |
---|
[131] | 181 | <g:sortableColumn property="enteredBy" title="Entered By" />--> |
---|
| 182 | </tr> |
---|
| 183 | </thead> |
---|
| 184 | <tbody> |
---|
[137] | 185 | <g:each in="${entryFaultList}" status="i" var="entry"> |
---|
[131] | 186 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
[153] | 187 | |
---|
[131] | 188 | <td style="width:65%">${entry.comment}</td> |
---|
[139] | 189 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> |
---|
[131] | 190 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
| 191 | <td>${entry.enteredBy}</td> |
---|
[153] | 192 | |
---|
[131] | 193 | <td> |
---|
| 194 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
[151] | 195 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
[131] | 196 | </g:link> |
---|
| 197 | </td> |
---|
[153] | 198 | |
---|
[131] | 199 | </tr> |
---|
[96] | 200 | </g:each> |
---|
[131] | 201 | </tbody> |
---|
| 202 | </table> |
---|
| 203 | </div> |
---|
[153] | 204 | |
---|
[131] | 205 | <div class="list"> |
---|
| 206 | <h1>Work Done</h1> |
---|
| 207 | <table> |
---|
| 208 | <thead> |
---|
| 209 | <tr> |
---|
| 210 | <th>Comment</th> |
---|
| 211 | <th>Date Done</th> |
---|
| 212 | <th>Duration</th> |
---|
| 213 | <th>Entered By</th> |
---|
| 214 | <th></th> |
---|
[153] | 215 | |
---|
[131] | 216 | <!-- <g:sortableColumn property="commentW" title="Comment" /> |
---|
[153] | 217 | |
---|
[131] | 218 | <g:sortableColumn property="dateDoneW" title="Date Done" /> |
---|
[153] | 219 | |
---|
[131] | 220 | <g:sortableColumn property="enteredByW" title="Entered By" />--> |
---|
| 221 | </tr> |
---|
| 222 | </thead> |
---|
| 223 | <tbody> |
---|
[137] | 224 | <g:each in="${entryWorkDoneList}" status="i" var="entry"> |
---|
[131] | 225 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
[153] | 226 | |
---|
[131] | 227 | <td width="65%">${entry.comment}</td> |
---|
[139] | 228 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> |
---|
[131] | 229 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
| 230 | <td>${entry.enteredBy}</td> |
---|
[153] | 231 | |
---|
[131] | 232 | <td> |
---|
| 233 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
[151] | 234 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
[131] | 235 | </g:link> |
---|
| 236 | </td> |
---|
[153] | 237 | |
---|
[131] | 238 | </tr> |
---|
[126] | 239 | </g:each> |
---|
[131] | 240 | </tbody> |
---|
| 241 | </table> |
---|
| 242 | </div> |
---|
[153] | 243 | |
---|
[131] | 244 | <br /> |
---|
[153] | 245 | |
---|
[131] | 246 | <div class="buttons"> |
---|
| 247 | <g:form controller="entryDetailed"> |
---|
| 248 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 249 | <span class="button"> |
---|
| 250 | <g:actionSubmit value="Add Entry" action="create" class="add"/> |
---|
| 251 | </span> |
---|
| 252 | </g:form> |
---|
| 253 | </div> |
---|
| 254 | </richui:tabContent> |
---|
| 255 | <!-- End Task tab --> |
---|
[126] | 256 | |
---|
[137] | 257 | |
---|
[131] | 258 | <!-- Start Task Procedure tab--> |
---|
| 259 | <richui:tabContent> |
---|
[133] | 260 | <g:if test="${!taskProcedureExits}"> |
---|
[153] | 261 | <br /> |
---|
| 262 | No Procedure linked. |
---|
| 263 | <br /> |
---|
| 264 | <br /> |
---|
[134] | 265 | <g:form controller="taskProcedureDetailed" > |
---|
[133] | 266 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 267 | |
---|
| 268 | <div class="buttons"> |
---|
| 269 | <span class="button"> |
---|
[134] | 270 | <g:actionSubmit value="New" action="create" class="add"/> |
---|
[133] | 271 | </span> |
---|
| 272 | <span class="button"> |
---|
[134] | 273 | <g:actionSubmit value="Search" action="search" class="search"/> |
---|
[133] | 274 | </span> |
---|
| 275 | </div> |
---|
[134] | 276 | |
---|
[133] | 277 | </g:form> |
---|
[126] | 278 | |
---|
[133] | 279 | </g:if> |
---|
| 280 | <g:else> |
---|
[153] | 281 | <div class="dialog"> |
---|
[133] | 282 | <table> |
---|
| 283 | <tbody> |
---|
[153] | 284 | |
---|
[133] | 285 | <tr class="prop"> |
---|
| 286 | <td valign="top" class="name">Procedure Id:</td> |
---|
[153] | 287 | |
---|
[133] | 288 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
---|
[153] | 289 | |
---|
[133] | 290 | </tr> |
---|
[153] | 291 | |
---|
[133] | 292 | <tr class="prop"> |
---|
| 293 | <td valign="top" class="name">Name:</td> |
---|
[153] | 294 | |
---|
[133] | 295 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> |
---|
[153] | 296 | |
---|
[133] | 297 | </tr> |
---|
[153] | 298 | |
---|
[133] | 299 | <tr class="prop"> |
---|
| 300 | <td valign="top" class="name">Description:</td> |
---|
[153] | 301 | |
---|
[133] | 302 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> |
---|
[153] | 303 | |
---|
[133] | 304 | </tr> |
---|
[153] | 305 | |
---|
[133] | 306 | <tr class="prop"> |
---|
| 307 | <td valign="top" class="name">Is Active:</td> |
---|
[153] | 308 | |
---|
[133] | 309 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> |
---|
[153] | 310 | |
---|
[133] | 311 | </tr> |
---|
[153] | 312 | |
---|
[133] | 313 | </tbody> |
---|
| 314 | </table> |
---|
| 315 | </div> |
---|
| 316 | <div class="buttons"> |
---|
| 317 | <g:form controller="taskProcedureDetailed"> |
---|
| 318 | <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> |
---|
| 319 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[153] | 320 | </g:form> |
---|
[133] | 321 | </div> |
---|
[126] | 322 | |
---|
[153] | 323 | <div class="list"> |
---|
| 324 | <table> |
---|
| 325 | <thead> |
---|
| 326 | <tr> |
---|
| 327 | <th>Step</th> |
---|
| 328 | <th>Description</th> |
---|
| 329 | </tr> |
---|
| 330 | </thead> |
---|
| 331 | <tbody> |
---|
| 332 | <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> |
---|
| 333 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 334 | |
---|
| 335 | <td valign="top" class="name"> |
---|
| 336 | ${maintenanceAction?.procedureStepNumber} |
---|
| 337 | </td> |
---|
| 338 | |
---|
| 339 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 340 | ${maintenanceAction?.description} |
---|
| 341 | </td> |
---|
| 342 | |
---|
| 343 | </tr> |
---|
| 344 | </g:each> |
---|
| 345 | |
---|
| 346 | </tbody> |
---|
| 347 | </table> |
---|
| 348 | </div> |
---|
| 349 | |
---|
[133] | 350 | </g:else> |
---|
| 351 | |
---|
[131] | 352 | </richui:tabContent> |
---|
| 353 | <!-- End Task Procedure tab--> |
---|
[126] | 354 | |
---|
[131] | 355 | <!-- Start Task Recurrence tab --> |
---|
| 356 | <richui:tabContent> |
---|
[134] | 357 | |
---|
| 358 | <g:if test="${!taskRecurringScheduleExits}"> |
---|
[153] | 359 | <br /> |
---|
| 360 | No Recurring Schedule. |
---|
| 361 | <br /> |
---|
| 362 | <br /> |
---|
[134] | 363 | <g:form controller="taskRecurringScheduleDetailed" > |
---|
| 364 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 365 | |
---|
| 366 | <div class="buttons"> |
---|
| 367 | <span class="button"> |
---|
| 368 | <g:actionSubmit value="Create" action="create" class="add"/> |
---|
| 369 | </span> |
---|
| 370 | </div> |
---|
| 371 | |
---|
| 372 | </g:form> |
---|
| 373 | |
---|
| 374 | </g:if> |
---|
| 375 | <g:else> |
---|
[153] | 376 | |
---|
| 377 | <div class="dialog"> |
---|
| 378 | <table> |
---|
| 379 | <tbody> |
---|
| 380 | <tr class="prop"> |
---|
| 381 | <td valign="top" class="name">Recurring Schedule:</td> |
---|
| 382 | |
---|
| 383 | <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> |
---|
| 384 | |
---|
[137] | 385 | </tr> |
---|
[153] | 386 | |
---|
[137] | 387 | <tr class="prop"> |
---|
[153] | 388 | <td valign="top" class="name">Start Date:</td> |
---|
| 389 | |
---|
| 390 | <td valign="top" class="value"> |
---|
| 391 | <g:formatDate date="${taskRecurringScheduleInstance.startDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 392 | </td> |
---|
| 393 | |
---|
| 394 | </tr> |
---|
| 395 | |
---|
| 396 | <tr class="prop"> |
---|
[137] | 397 | <td valign="top" class="name">Task Duration:</td> |
---|
[153] | 398 | |
---|
[137] | 399 | <td valign="top" class="value"> |
---|
| 400 | ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod} |
---|
| 401 | </td> |
---|
| 402 | </tr> |
---|
[153] | 403 | |
---|
[137] | 404 | <tr class="prop"> |
---|
| 405 | <td valign="top" class="name">Generate Ahead:</td> |
---|
[153] | 406 | |
---|
[137] | 407 | <td valign="top" class="value"> |
---|
| 408 | ${taskRecurringScheduleInstance?.generateAhead} ${taskRecurringScheduleInstance?.generateAheadPeriod} |
---|
| 409 | </td> |
---|
[153] | 410 | |
---|
[137] | 411 | </tr> |
---|
[153] | 412 | |
---|
| 413 | </tr> |
---|
| 414 | |
---|
| 415 | <tr class="prop"> |
---|
| 416 | <td valign="top" class="name">Is Enabled:</td> |
---|
| 417 | |
---|
| 418 | <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td> |
---|
| 419 | |
---|
| 420 | </tr> |
---|
| 421 | |
---|
[137] | 422 | </tbody> |
---|
| 423 | </table> |
---|
[153] | 424 | |
---|
[137] | 425 | <table> |
---|
| 426 | <tbody> |
---|
[153] | 427 | |
---|
[137] | 428 | <tr class="prop"> |
---|
[153] | 429 | <td valign="top" class="name">Next Target Start Date:</td> |
---|
| 430 | |
---|
| 431 | <td valign="top" class="value"> |
---|
| 432 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 433 | </td> |
---|
| 434 | |
---|
| 435 | </tr> |
---|
| 436 | |
---|
| 437 | <tr class="prop"> |
---|
[137] | 438 | <td valign="top" class="name">Next Target Completion Date:</td> |
---|
[153] | 439 | |
---|
[137] | 440 | <td valign="top" class="value"> |
---|
[139] | 441 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[137] | 442 | </td> |
---|
[153] | 443 | |
---|
[137] | 444 | </tr> |
---|
[153] | 445 | |
---|
[137] | 446 | <tr class="prop"> |
---|
| 447 | <td valign="top" class="name">Next Generation Date:</td> |
---|
[153] | 448 | |
---|
[137] | 449 | <td valign="top" class="value"> |
---|
[139] | 450 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[137] | 451 | </td> |
---|
| 452 | </tr> |
---|
[153] | 453 | |
---|
| 454 | <tr class="prop"> |
---|
| 455 | <td valign="top" class="name">Last Generated Date:</td> |
---|
| 456 | |
---|
| 457 | <td valign="top" class="value"> |
---|
| 458 | <g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 459 | </td> |
---|
| 460 | |
---|
| 461 | </tr> |
---|
| 462 | |
---|
| 463 | <tr class="prop"> |
---|
| 464 | <td valign="top" class="name">Last Generated Sub Task:</td> |
---|
| 465 | |
---|
| 466 | <td valign="top" class="value"> |
---|
| 467 | <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}"> |
---|
| 468 | ${taskRecurringScheduleInstance?.lastGeneratedSubTask?.encodeAsHTML()} |
---|
| 469 | </g:link> |
---|
| 470 | </td> |
---|
| 471 | </tr> |
---|
| 472 | </tbody> |
---|
| 473 | </table> |
---|
| 474 | </div> |
---|
[134] | 475 | <div class="buttons"> |
---|
| 476 | <g:form controller="taskRecurringScheduleDetailed"> |
---|
[135] | 477 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
[134] | 478 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[153] | 479 | </g:form> |
---|
[134] | 480 | </div> |
---|
[153] | 481 | |
---|
| 482 | </g:else> |
---|
[131] | 483 | </richui:tabContent> |
---|
| 484 | <!-- End Task Recurrence tab --> |
---|
[126] | 485 | |
---|
[131] | 486 | <!-- Start Inventory tab --> |
---|
| 487 | <richui:tabContent> |
---|
| 488 | Used Inventory |
---|
| 489 | </richui:tabContent> |
---|
| 490 | <!-- End Inventory tab --> |
---|
[126] | 491 | |
---|
[153] | 492 | <!-- Start Sub Task tab --> |
---|
[131] | 493 | <richui:tabContent> |
---|
[153] | 494 | <g:if test="${subTaskInstanceTotal >= 1}"> |
---|
| 495 | <div class="list"> |
---|
| 496 | <table> |
---|
| 497 | <thead> |
---|
| 498 | <tr> |
---|
[134] | 499 | |
---|
[153] | 500 | <th>Id</th> |
---|
| 501 | |
---|
| 502 | <th>Target Start Date</th> |
---|
| 503 | |
---|
| 504 | <th>Description</th> |
---|
| 505 | |
---|
| 506 | <th>Lead Person</th> |
---|
| 507 | |
---|
| 508 | <th>Task Priority</th> |
---|
| 509 | |
---|
| 510 | <th>Task Status</th> |
---|
| 511 | |
---|
| 512 | <th></th> |
---|
| 513 | |
---|
| 514 | </tr> |
---|
| 515 | </thead> |
---|
| 516 | <tbody> |
---|
| 517 | <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> |
---|
| 518 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'/> |
---|
| 519 | |
---|
| 520 | <td>${fieldValue(bean:subTaskInstance, field:'id')}</td> |
---|
| 521 | |
---|
| 522 | <td><g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
| 523 | |
---|
| 524 | <td>${subTaskInstance.description}</td> |
---|
| 525 | |
---|
| 526 | |
---|
| 527 | <td>${subTaskInstance.leadPerson}</td> |
---|
| 528 | |
---|
| 529 | <td>${subTaskInstance.taskPriority}</td> |
---|
| 530 | |
---|
| 531 | <td>${subTaskInstance.taskStatus}</td> |
---|
| 532 | |
---|
| 533 | <td> |
---|
| 534 | <g:link action="show" id="${subTaskInstance.id}"> |
---|
| 535 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 536 | </g:link> |
---|
| 537 | </td> |
---|
| 538 | |
---|
| 539 | </tr> |
---|
| 540 | </g:each> |
---|
| 541 | </tbody> |
---|
| 542 | </table> |
---|
| 543 | </div> |
---|
| 544 | |
---|
| 545 | <div class="buttons"> |
---|
| 546 | <g:form> |
---|
| 547 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
| 548 | <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> |
---|
| 549 | Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} |
---|
| 550 | <br /> |
---|
| 551 | </g:if> |
---|
| 552 | <g:else> |
---|
| 553 | Total ${subTaskInstanceTotal} |
---|
| 554 | <br /> |
---|
| 555 | </g:else> |
---|
| 556 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="Sortable List" /></span> |
---|
| 557 | </g:form> |
---|
| 558 | </div> |
---|
| 559 | |
---|
| 560 | </g:if> |
---|
| 561 | <g:else> |
---|
| 562 | <br /> |
---|
| 563 | No Sub Tasks. |
---|
| 564 | </g:else> |
---|
| 565 | |
---|
[131] | 566 | </richui:tabContent> |
---|
| 567 | <!-- End Sub Task tab --> |
---|
[126] | 568 | |
---|
[131] | 569 | </richui:tabContents> |
---|
| 570 | </richui:tabView> |
---|
[153] | 571 | |
---|
[84] | 572 | </div> |
---|
| 573 | </body> |
---|
| 574 | </html> |
---|