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:render template="/shared/messages" /> |
---|
15 | <g:if test="${taskInstance.trash}" > |
---|
16 | <div class="errors"> |
---|
17 | <ul><li>This task is in the trash bin, but can be restored if required.<li><ul> |
---|
18 | </div> |
---|
19 | </g:if> |
---|
20 | <g:hasErrors bean="${taskInstance}"> |
---|
21 | <div class="errors"> |
---|
22 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
23 | </div> |
---|
24 | </g:hasErrors> |
---|
25 | |
---|
26 | <div class="tabHeader"> |
---|
27 | <h1> |
---|
28 | Task #${taskInstance.id} |
---|
29 | |
---|
30 | <g:if test="${taskInstance.approved}" > |
---|
31 | <img src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" /> |
---|
32 | </g:if> |
---|
33 | <g:if test="${taskRecurringScheduleInstance?.enabled}" > |
---|
34 | <img src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" /> |
---|
35 | </g:if> |
---|
36 | <g:if test="${taskInstance.taskStatus.id == 2}" > |
---|
37 | <img src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" /> |
---|
38 | </g:if> |
---|
39 | <g:if test="${taskInstance.attentionFlag}" > |
---|
40 | <img src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" /> |
---|
41 | </g:if> |
---|
42 | <g:if test="${taskInstance.taskStatus.id == 3}" > |
---|
43 | <img src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> |
---|
44 | </g:if> |
---|
45 | </h1> |
---|
46 | <g:if test="${taskInstance.primaryAsset}" > |
---|
47 | ${fieldValue(bean:taskInstance, field:'primaryAsset')}: |
---|
48 | </g:if> |
---|
49 | ${fieldValue(bean:taskInstance, field:'description')} |
---|
50 | <g:if test="${taskInstance.safetyRequirement}" > |
---|
51 | <img src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> |
---|
52 | Safety |
---|
53 | </g:if> |
---|
54 | <g:if test="${taskInstance.regulatoryRequirement}" > |
---|
55 | <img src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> |
---|
56 | Regulatory |
---|
57 | </g:if> |
---|
58 | <g:if test="${taskInstance.mandatoryRequirement}" > |
---|
59 | <img src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> |
---|
60 | Mandatory |
---|
61 | </g:if> |
---|
62 | </div> |
---|
63 | |
---|
64 | <br/> |
---|
65 | |
---|
66 | <richui:tabView id="tabView"> |
---|
67 | |
---|
68 | <richui:tabLabels> |
---|
69 | <richui:tabLabel selected="${showTab.task}" title="Details" /> |
---|
70 | <g:if test="${taskProcedureExits}"> |
---|
71 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure (!)" /> |
---|
72 | </g:if> |
---|
73 | <g:else> |
---|
74 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure" /> |
---|
75 | </g:else> |
---|
76 | <g:if test="${taskRecurringScheduleExits}"> |
---|
77 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence (!)" /> |
---|
78 | </g:if> |
---|
79 | <g:else> |
---|
80 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" /> |
---|
81 | </g:else> |
---|
82 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
---|
83 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (${inventoryMovementList.size()})" /> |
---|
84 | </g:if> |
---|
85 | <g:else> |
---|
86 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (0)" /> |
---|
87 | </g:else> |
---|
88 | <g:if test="${subTaskInstanceTotal > 0}"> |
---|
89 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (${subTaskInstanceTotal})" /> |
---|
90 | </g:if> |
---|
91 | <g:else> |
---|
92 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (0)" /> |
---|
93 | </g:else> |
---|
94 | </richui:tabLabels> |
---|
95 | |
---|
96 | <richui:tabContents> |
---|
97 | |
---|
98 | <richui:tabContent> |
---|
99 | <g:render template="showTaskTab" /> |
---|
100 | </richui:tabContent> |
---|
101 | |
---|
102 | <richui:tabContent> |
---|
103 | <g:render template="showProcedureTab" /> |
---|
104 | </richui:tabContent> |
---|
105 | |
---|
106 | <richui:tabContent> |
---|
107 | <g:render template="showRecurrenceTab" /> |
---|
108 | </richui:tabContent> |
---|
109 | |
---|
110 | <richui:tabContent> |
---|
111 | <g:render template="showInventoryTab" /> |
---|
112 | </richui:tabContent> |
---|
113 | |
---|
114 | <richui:tabContent> |
---|
115 | <g:render template="showSubTaskTab" /> |
---|
116 | </richui:tabContent> |
---|
117 | |
---|
118 | </richui:tabContents> |
---|
119 | </richui:tabView> |
---|
120 | |
---|
121 | </div> <!--body--> |
---|
122 | </body> |
---|
123 | </html> |
---|