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 #${taskInstance.id}</title> |
---|
6 | <nav:resources override="true"/> |
---|
7 | <resource:tabView skin="tabviewCustom" /> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <nav:renderSubItems group="nav"/> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:if test="${flash.message}"> |
---|
15 | <div class="message">${flash.message}</div> |
---|
16 | </g:if> |
---|
17 | <g:if test="${taskInstance.trash}" > |
---|
18 | <div class="errors"> |
---|
19 | This task is in the trash bin, but can be restored if required. |
---|
20 | </div> |
---|
21 | </g:if> |
---|
22 | <g:hasErrors bean="${taskInstance}"> |
---|
23 | <div class="errors"> |
---|
24 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
25 | </div> |
---|
26 | </g:hasErrors> |
---|
27 | |
---|
28 | <richui:tabView id="tabView"> |
---|
29 | |
---|
30 | <richui:tabLabels> |
---|
31 | <richui:tabLabel selected="${showTab.task}" title="Task #${taskInstance.id}" /> |
---|
32 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure" /> |
---|
33 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" /> |
---|
34 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory" /> |
---|
35 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks" /> |
---|
36 | </richui:tabLabels> |
---|
37 | |
---|
38 | <richui:tabContents> |
---|
39 | |
---|
40 | <!-- Start Task tab --> |
---|
41 | <richui:tabContent> |
---|
42 | |
---|
43 | <div class="dialog"> |
---|
44 | <table> |
---|
45 | <tbody> |
---|
46 | |
---|
47 | <g:if test="${taskInstance.parentTask}"> |
---|
48 | <tr class="prop"> |
---|
49 | <td valign="top" class="name">Parent Task:</td> |
---|
50 | |
---|
51 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance.parentTask.id}">${taskInstance.parentTask.encodeAsHTML()}</g:link></td> |
---|
52 | |
---|
53 | </tr> |
---|
54 | </g:if> |
---|
55 | |
---|
56 | <tr class="prop"> |
---|
57 | <td valign="top" class="name">Description:</td> |
---|
58 | |
---|
59 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
60 | |
---|
61 | </tr> |
---|
62 | |
---|
63 | <tr class="prop"> |
---|
64 | <td valign="top" class="name">Comment:</td> |
---|
65 | |
---|
66 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
67 | |
---|
68 | </tr> |
---|
69 | |
---|
70 | <tr class="prop"> |
---|
71 | <td valign="top" class="name">Target Start:</td> |
---|
72 | |
---|
73 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
74 | |
---|
75 | </tr> |
---|
76 | |
---|
77 | <tr class="prop"> |
---|
78 | <td valign="top" class="name">Target Completion:</td> |
---|
79 | |
---|
80 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
81 | |
---|
82 | </tr> |
---|
83 | |
---|
84 | <tr class="prop"> |
---|
85 | <td valign="top" class="name"> |
---|
86 | |
---|
87 | <jsUtil:toggleControl toggleId="modifications" |
---|
88 | imageId="modificationsImg" |
---|
89 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}" |
---|
90 | openImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}" |
---|
91 | effect="fade" |
---|
92 | text="Modifications" |
---|
93 | /> |
---|
94 | </td> |
---|
95 | |
---|
96 | <td valign="top" style="text-align:left;" class="value"> |
---|
97 | <div id="modifications" style="display:none;"> |
---|
98 | <ul> |
---|
99 | <g:each var="a" in="${taskModificationList}"> |
---|
100 | <li>${a?.encodeAsHTML()}</li> |
---|
101 | </g:each> |
---|
102 | </ul> |
---|
103 | </div> |
---|
104 | </td> |
---|
105 | </tr> |
---|
106 | |
---|
107 | <tr class="prop"> |
---|
108 | <td valign="top" class="name">Primary Asset:</td> |
---|
109 | |
---|
110 | <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> |
---|
111 | |
---|
112 | </tr> |
---|
113 | |
---|
114 | <tr class="prop"> |
---|
115 | <td valign="top" class="name">Associated Assets:</td> |
---|
116 | |
---|
117 | <td valign="top" style="text-align:left;" class="value"> |
---|
118 | <ul> |
---|
119 | <g:each var="a" in="${taskInstance.associatedAssets}"> |
---|
120 | <li>${a?.encodeAsHTML()}</li> |
---|
121 | </g:each> |
---|
122 | </ul> |
---|
123 | </td> |
---|
124 | |
---|
125 | </tr> |
---|
126 | |
---|
127 | <tr class="prop"> |
---|
128 | <td valign="top" class="name">Priority:</td> |
---|
129 | |
---|
130 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
131 | |
---|
132 | </tr> |
---|
133 | |
---|
134 | <tr class="prop"> |
---|
135 | <td valign="top" class="name">Status:</td> |
---|
136 | |
---|
137 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
---|
138 | |
---|
139 | </tr> |
---|
140 | |
---|
141 | <tr class="prop"> |
---|
142 | <td valign="top" class="name">Budget Status:</td> |
---|
143 | |
---|
144 | <td valign="top" class="value">${taskInstance?.taskBudgetStatus?.encodeAsHTML()}</td> |
---|
145 | |
---|
146 | </tr> |
---|
147 | |
---|
148 | <tr class="prop"> |
---|
149 | <td valign="top" class="name">Approved:</td> |
---|
150 | |
---|
151 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'approved')}</td> |
---|
152 | |
---|
153 | </tr> |
---|
154 | |
---|
155 | <tr class="prop"> |
---|
156 | <td valign="top" class="name">Scheduled:</td> |
---|
157 | |
---|
158 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'scheduled')}</td> |
---|
159 | |
---|
160 | </tr> |
---|
161 | |
---|
162 | <tr class="prop"> |
---|
163 | <td valign="top" class="name">Group:</td> |
---|
164 | |
---|
165 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
166 | |
---|
167 | </tr> |
---|
168 | |
---|
169 | <tr class="prop"> |
---|
170 | <td valign="top" class="name">Type:</td> |
---|
171 | |
---|
172 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
173 | |
---|
174 | </tr> |
---|
175 | |
---|
176 | <tr class="prop"> |
---|
177 | <td valign="top" class="name">Lead Person:</td> |
---|
178 | |
---|
179 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
180 | |
---|
181 | </tr> |
---|
182 | |
---|
183 | <tr class="prop"> |
---|
184 | <td valign="top" class="name">Assigned Groups:</td> |
---|
185 | |
---|
186 | <td valign="top" style="text-align:left;" class="value"> |
---|
187 | <ul> |
---|
188 | <g:each var="a" in="${assignedGroupList}"> |
---|
189 | <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
190 | </g:each> |
---|
191 | </ul> |
---|
192 | <g:link controller="assignedGroupDetailed" action="create" params="['task.id':taskInstance.id]">+Add Group</g:link> |
---|
193 | </td> |
---|
194 | |
---|
195 | </tr> |
---|
196 | |
---|
197 | |
---|
198 | <tr class="prop"> |
---|
199 | <td valign="top" class="name">Assigned Persons:</td> |
---|
200 | |
---|
201 | <td valign="top" style="text-align:left;" class="value"> |
---|
202 | <ul> |
---|
203 | <g:each var="a" in="${assignedPersonList}"> |
---|
204 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
205 | </g:each> |
---|
206 | </ul> |
---|
207 | <g:link controller="assignedPersonDetailed" action="create" params="['task.id':taskInstance?.id]">+Add Person</g:link> |
---|
208 | </td> |
---|
209 | |
---|
210 | </tr> |
---|
211 | |
---|
212 | </tbody> |
---|
213 | </table> |
---|
214 | </div> |
---|
215 | |
---|
216 | <div class="buttons"> |
---|
217 | <g:form> |
---|
218 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
219 | |
---|
220 | <g:if test="${taskInstance.trash}" > |
---|
221 | <span class="button"><g:actionSubmit class="restore" onclick="return confirm('Are you sure?');" value="Restore" /></span> |
---|
222 | </g:if> |
---|
223 | <g:else> |
---|
224 | |
---|
225 | <g:if test="${taskInstance.taskStatus.id != 3}" > |
---|
226 | <span class="button"><g:actionSubmit class="complete" value="Complete" /></span> |
---|
227 | |
---|
228 | <g:if test="${taskInstance.approved}" > |
---|
229 | <span class="button"><g:actionSubmit class="renegeApproval" value="Renege Approval" action="renegeApproval" /></span> |
---|
230 | </g:if> |
---|
231 | <g:else> |
---|
232 | <span class="button"><g:actionSubmit class="approve" value="Approve" /></span> |
---|
233 | </g:else> |
---|
234 | |
---|
235 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
236 | <span class="button"><g:actionSubmit class="trash" onclick="return confirm('Are you sure?');" value="Trash" /></span> |
---|
237 | |
---|
238 | </g:if> |
---|
239 | <g:else> |
---|
240 | <span class="button"><g:actionSubmit class="reopen" value="Reopen" /></span> |
---|
241 | </g:else> |
---|
242 | |
---|
243 | </g:else> |
---|
244 | </g:form> |
---|
245 | </div> |
---|
246 | |
---|
247 | <br /> |
---|
248 | |
---|
249 | <g:if test="${entryFaultList.isEmpty()}"> |
---|
250 | <h1>No Faults</h1> |
---|
251 | <br /> |
---|
252 | </g:if> |
---|
253 | <g:else> |
---|
254 | <div class="list"> |
---|
255 | <h1>Faults</h1> |
---|
256 | <table> |
---|
257 | <thead> |
---|
258 | <tr> |
---|
259 | <th>Comment</th> |
---|
260 | <th>Date Done</th> |
---|
261 | <th>Duration</th> |
---|
262 | <th>Entered By</th> |
---|
263 | <th></th> |
---|
264 | </tr> |
---|
265 | </thead> |
---|
266 | <tbody> |
---|
267 | <g:each in="${entryFaultList}" status="i" var="entry"> |
---|
268 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
269 | |
---|
270 | <td style="width:65%">${entry.comment}</td> |
---|
271 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> |
---|
272 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
273 | <td>${entry.enteredBy}</td> |
---|
274 | |
---|
275 | <td> |
---|
276 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
277 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
278 | </g:link> |
---|
279 | </td> |
---|
280 | |
---|
281 | </tr> |
---|
282 | </g:each> |
---|
283 | </tbody> |
---|
284 | </table> |
---|
285 | </div> |
---|
286 | </g:else> |
---|
287 | |
---|
288 | <div class="buttons"> |
---|
289 | <g:form controller="entryDetailed"> |
---|
290 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
291 | <g:hiddenField name="entryType.id" value="1" /> |
---|
292 | <span class="button"> |
---|
293 | <g:actionSubmit value="Add Fault" action="create" class="add"/> |
---|
294 | </span> |
---|
295 | </g:form> |
---|
296 | </div> |
---|
297 | |
---|
298 | <br /> |
---|
299 | |
---|
300 | <g:if test="${entryWorkDoneList.isEmpty()}"> |
---|
301 | <h1>No Work Done</h1> |
---|
302 | <br /> |
---|
303 | </g:if> |
---|
304 | <g:else> |
---|
305 | <div class="list"> |
---|
306 | <h1>Work Done</h1> |
---|
307 | <table> |
---|
308 | <thead> |
---|
309 | <tr> |
---|
310 | <th>Comment</th> |
---|
311 | <th>Date Done</th> |
---|
312 | <th>Duration</th> |
---|
313 | <th>Entered By</th> |
---|
314 | <th></th> |
---|
315 | </tr> |
---|
316 | </thead> |
---|
317 | <tbody> |
---|
318 | <g:each in="${entryWorkDoneList}" status="i" var="entry"> |
---|
319 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
320 | |
---|
321 | <td width="65%">${entry.comment}</td> |
---|
322 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> |
---|
323 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
324 | <td>${entry.enteredBy}</td> |
---|
325 | |
---|
326 | <td> |
---|
327 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
328 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
329 | </g:link> |
---|
330 | </td> |
---|
331 | |
---|
332 | </tr> |
---|
333 | </g:each> |
---|
334 | </tbody> |
---|
335 | </table> |
---|
336 | </div> |
---|
337 | </g:else> |
---|
338 | |
---|
339 | <div class="buttons"> |
---|
340 | <g:form controller="entryDetailed"> |
---|
341 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
342 | <g:hiddenField name="entryType.id" value="2" /> |
---|
343 | <span class="button"> |
---|
344 | <g:actionSubmit value="Add Work Done" action="create" class="add"/> |
---|
345 | </span> |
---|
346 | </g:form> |
---|
347 | </div> |
---|
348 | </richui:tabContent> |
---|
349 | <!-- End Task tab --> |
---|
350 | |
---|
351 | |
---|
352 | <!-- Start Task Procedure tab--> |
---|
353 | <richui:tabContent> |
---|
354 | <g:if test="${!taskProcedureExits}"> |
---|
355 | <br /> |
---|
356 | No Procedure linked. |
---|
357 | <br /> |
---|
358 | <br /> |
---|
359 | <g:form controller="taskProcedureDetailed" > |
---|
360 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
361 | |
---|
362 | <div class="buttons"> |
---|
363 | <span class="button"> |
---|
364 | <g:actionSubmit value="New" action="create" class="add"/> |
---|
365 | </span> |
---|
366 | <span class="button"> |
---|
367 | <g:actionSubmit value="Search" action="search" class="search"/> |
---|
368 | </span> |
---|
369 | </div> |
---|
370 | |
---|
371 | </g:form> |
---|
372 | |
---|
373 | </g:if> |
---|
374 | <g:else> |
---|
375 | <div class="dialog"> |
---|
376 | <table> |
---|
377 | <tbody> |
---|
378 | |
---|
379 | <tr class="prop"> |
---|
380 | <td valign="top" class="name">Procedure Id:</td> |
---|
381 | |
---|
382 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
---|
383 | |
---|
384 | </tr> |
---|
385 | |
---|
386 | <tr class="prop"> |
---|
387 | <td valign="top" class="name">Name:</td> |
---|
388 | |
---|
389 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> |
---|
390 | |
---|
391 | </tr> |
---|
392 | |
---|
393 | <tr class="prop"> |
---|
394 | <td valign="top" class="name">Description:</td> |
---|
395 | |
---|
396 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> |
---|
397 | |
---|
398 | </tr> |
---|
399 | |
---|
400 | <tr class="prop"> |
---|
401 | <td valign="top" class="name">Is Active:</td> |
---|
402 | |
---|
403 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> |
---|
404 | |
---|
405 | </tr> |
---|
406 | |
---|
407 | </tbody> |
---|
408 | </table> |
---|
409 | </div> |
---|
410 | <div class="buttons"> |
---|
411 | <g:form controller="taskProcedureDetailed"> |
---|
412 | <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> |
---|
413 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
414 | </g:form> |
---|
415 | </div> |
---|
416 | |
---|
417 | <div class="list"> |
---|
418 | <table> |
---|
419 | <thead> |
---|
420 | <tr> |
---|
421 | <th>Step</th> |
---|
422 | <th>Description</th> |
---|
423 | </tr> |
---|
424 | </thead> |
---|
425 | <tbody> |
---|
426 | <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> |
---|
427 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
428 | |
---|
429 | <td valign="top" class="name"> |
---|
430 | ${maintenanceAction?.procedureStepNumber} |
---|
431 | </td> |
---|
432 | |
---|
433 | <td valign="top" style="text-align:left;" class="value"> |
---|
434 | ${maintenanceAction?.description} |
---|
435 | </td> |
---|
436 | |
---|
437 | </tr> |
---|
438 | </g:each> |
---|
439 | |
---|
440 | </tbody> |
---|
441 | </table> |
---|
442 | </div> |
---|
443 | |
---|
444 | </g:else> |
---|
445 | |
---|
446 | </richui:tabContent> |
---|
447 | <!-- End Task Procedure tab--> |
---|
448 | |
---|
449 | <!-- Start Task Recurrence tab --> |
---|
450 | <richui:tabContent> |
---|
451 | |
---|
452 | <g:if test="${!taskRecurringScheduleExits}"> |
---|
453 | <br /> |
---|
454 | No Recurring Schedule. |
---|
455 | <br /> |
---|
456 | <br /> |
---|
457 | <g:form controller="taskRecurringScheduleDetailed" > |
---|
458 | <g:hiddenField name="task.id" value="${taskInstance.id}" /> |
---|
459 | |
---|
460 | <div class="buttons"> |
---|
461 | <span class="button"> |
---|
462 | <g:actionSubmit value="Add" action="create" class="add"/> |
---|
463 | </span> |
---|
464 | </div> |
---|
465 | |
---|
466 | </g:form> |
---|
467 | |
---|
468 | </g:if> |
---|
469 | <g:else> |
---|
470 | |
---|
471 | <div class="dialog"> |
---|
472 | <table> |
---|
473 | <tbody> |
---|
474 | <tr class="prop"> |
---|
475 | <td valign="top" class="name">Recurring Schedule:</td> |
---|
476 | |
---|
477 | <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> |
---|
478 | </tr> |
---|
479 | |
---|
480 | <tr class="prop"> |
---|
481 | <td valign="top" class="name">Next Generation Date:</td> |
---|
482 | |
---|
483 | <td valign="top" class="value"> |
---|
484 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
---|
485 | </td> |
---|
486 | </tr> |
---|
487 | |
---|
488 | <tr class="prop"> |
---|
489 | <td valign="top" class="name">Generate Ahead:</td> |
---|
490 | |
---|
491 | <td valign="top" class="value"> |
---|
492 | ${taskRecurringScheduleInstance?.generateAhead} ${Period.get(1).encodeAsHTML()} |
---|
493 | </td> |
---|
494 | </tr> |
---|
495 | |
---|
496 | <tr class="prop"> |
---|
497 | <td valign="top" class="name">Next Target Start Date:</td> |
---|
498 | |
---|
499 | <td valign="top" class="value"> |
---|
500 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
501 | </td> |
---|
502 | </tr> |
---|
503 | |
---|
504 | <tr class="prop"> |
---|
505 | <td valign="top" class="name">Task Duration:</td> |
---|
506 | |
---|
507 | <td valign="top" class="value"> |
---|
508 | ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod} |
---|
509 | </td> |
---|
510 | </tr> |
---|
511 | |
---|
512 | <tr class="prop"> |
---|
513 | <td valign="top" class="name">Next Target Completion Date:</td> |
---|
514 | |
---|
515 | <td valign="top" class="value"> |
---|
516 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
517 | </td> |
---|
518 | </tr> |
---|
519 | |
---|
520 | <tr class="prop"> |
---|
521 | <td valign="top" class="name">Enabled:</td> |
---|
522 | |
---|
523 | <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> |
---|
524 | </tr> |
---|
525 | |
---|
526 | </tbody> |
---|
527 | </table> |
---|
528 | </div> |
---|
529 | <div class="buttons"> |
---|
530 | <g:form controller="taskRecurringScheduleDetailed"> |
---|
531 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
532 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
533 | <span class="button"><g:actionSubmit class="go" value="Show" /></span> |
---|
534 | </g:form> |
---|
535 | </div> |
---|
536 | |
---|
537 | </g:else> |
---|
538 | </richui:tabContent> |
---|
539 | <!-- End Task Recurrence tab --> |
---|
540 | |
---|
541 | <!-- Start Inventory tab --> |
---|
542 | <richui:tabContent> |
---|
543 | |
---|
544 | <g:if test="${inventoryMovementList.isEmpty()}"> |
---|
545 | <br /> |
---|
546 | No Inventory Movements. |
---|
547 | <br /> |
---|
548 | <br /> |
---|
549 | </g:if> |
---|
550 | <g:else> |
---|
551 | <div class="list"> |
---|
552 | <table> |
---|
553 | <thead> |
---|
554 | <tr> |
---|
555 | <th>Inventory Item</th> |
---|
556 | <th>Quantity</th> |
---|
557 | <th>Movement Type</th> |
---|
558 | <th>Date</th> |
---|
559 | <th></th> |
---|
560 | </tr> |
---|
561 | </thead> |
---|
562 | <tbody> |
---|
563 | <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> |
---|
564 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'/> |
---|
565 | |
---|
566 | <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryItem')}</td> |
---|
567 | <td>${fieldValue(bean:inventoryMovementInstance, field:'quantity')}</td> |
---|
568 | <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')}</td> |
---|
569 | <td><g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/></td> |
---|
570 | <td> |
---|
571 | <g:link controller="inventoryMovementDetailed" action="show" id="${inventoryMovementInstance.id}"> |
---|
572 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
573 | </g:link> |
---|
574 | </td> |
---|
575 | |
---|
576 | </tr> |
---|
577 | </g:each> |
---|
578 | </tbody> |
---|
579 | </table> |
---|
580 | </div> |
---|
581 | </g:else> |
---|
582 | |
---|
583 | <g:form controller="inventoryItemDetailed" > |
---|
584 | <g:hiddenField name="task.id" value="${taskInstance?.id}" /> |
---|
585 | <div class="buttons"> |
---|
586 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
---|
587 | Results: ${inventoryMovementList.size()} |
---|
588 | <br /> |
---|
589 | </g:if> |
---|
590 | <span class="button"> |
---|
591 | <g:actionSubmit action="findInventoryItemForMovement" class="add" value="Add"/> |
---|
592 | </span> |
---|
593 | </div> |
---|
594 | </g:form> |
---|
595 | |
---|
596 | </richui:tabContent> |
---|
597 | <!-- End Inventory tab --> |
---|
598 | |
---|
599 | <!-- Start Sub Task tab --> |
---|
600 | <richui:tabContent> |
---|
601 | <g:if test="${subTaskInstanceTotal >= 1}"> |
---|
602 | <div class="list"> |
---|
603 | <table> |
---|
604 | <thead> |
---|
605 | <tr> |
---|
606 | |
---|
607 | <th>Id</th> |
---|
608 | |
---|
609 | <th>Target Start Date</th> |
---|
610 | |
---|
611 | <th>Description</th> |
---|
612 | |
---|
613 | <th>Lead Person</th> |
---|
614 | |
---|
615 | <th>Task Priority</th> |
---|
616 | |
---|
617 | <th>Task Status</th> |
---|
618 | |
---|
619 | <th></th> |
---|
620 | |
---|
621 | </tr> |
---|
622 | </thead> |
---|
623 | <tbody> |
---|
624 | <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> |
---|
625 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'/> |
---|
626 | |
---|
627 | <td>${fieldValue(bean:subTaskInstance, field:'id')}</td> |
---|
628 | |
---|
629 | <td><g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
630 | |
---|
631 | <td>${subTaskInstance.description}</td> |
---|
632 | |
---|
633 | |
---|
634 | <td>${subTaskInstance.leadPerson}</td> |
---|
635 | |
---|
636 | <td>${subTaskInstance.taskPriority}</td> |
---|
637 | |
---|
638 | <td>${subTaskInstance.taskStatus}</td> |
---|
639 | |
---|
640 | <td> |
---|
641 | <g:link action="show" id="${subTaskInstance.id}"> |
---|
642 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
643 | </g:link> |
---|
644 | </td> |
---|
645 | |
---|
646 | </tr> |
---|
647 | </g:each> |
---|
648 | </tbody> |
---|
649 | </table> |
---|
650 | </div> |
---|
651 | |
---|
652 | <div class="buttons"> |
---|
653 | <g:form> |
---|
654 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
655 | <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> |
---|
656 | Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} |
---|
657 | <br /> |
---|
658 | </g:if> |
---|
659 | <g:else> |
---|
660 | Total ${subTaskInstanceTotal} |
---|
661 | <br /> |
---|
662 | </g:else> |
---|
663 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span> |
---|
664 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
665 | </g:form> |
---|
666 | </div> |
---|
667 | |
---|
668 | </g:if> |
---|
669 | <g:else> |
---|
670 | <br /> |
---|
671 | No Sub Tasks. |
---|
672 | <br /> |
---|
673 | <br /> |
---|
674 | |
---|
675 | <div class="buttons"> |
---|
676 | <g:form> |
---|
677 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
678 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
679 | </g:form> |
---|
680 | </div> |
---|
681 | </g:else> |
---|
682 | |
---|
683 | </richui:tabContent> |
---|
684 | <!-- End Sub Task tab --> |
---|
685 | |
---|
686 | </richui:tabContents> |
---|
687 | </richui:tabView> |
---|
688 | |
---|
689 | </div> |
---|
690 | </body> |
---|
691 | </html> |
---|