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