1 | |
---|
2 | <div class="dialog"> |
---|
3 | <table> |
---|
4 | <tbody> |
---|
5 | |
---|
6 | <g:if test="${taskInstance.parentTask}"> |
---|
7 | <tr class="prop"> |
---|
8 | <td valign="top" class="name">Parent Task:</td> |
---|
9 | |
---|
10 | <td valign="top" class="value"> |
---|
11 | <g:link controller="taskDetailed" action="show" id="${taskInstance.parentTask.id}"> |
---|
12 | ${taskInstance.parentTask.encodeAsHTML()} |
---|
13 | </g:link> |
---|
14 | </td> |
---|
15 | |
---|
16 | </tr> |
---|
17 | </g:if> |
---|
18 | |
---|
19 | <tr class="prop"> |
---|
20 | <td valign="top" class="name">Comment:</td> |
---|
21 | |
---|
22 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
23 | |
---|
24 | </tr> |
---|
25 | |
---|
26 | <tr class="prop"> |
---|
27 | <td valign="top" class="name">Target Start:</td> |
---|
28 | |
---|
29 | <td valign="top" class="value"> |
---|
30 | <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
31 | </td> |
---|
32 | |
---|
33 | </tr> |
---|
34 | |
---|
35 | <tr class="prop"> |
---|
36 | <td valign="top" class="name">Target Completion:</td> |
---|
37 | |
---|
38 | <td valign="top" class="value"> |
---|
39 | <g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
40 | </td> |
---|
41 | |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr class="prop"> |
---|
45 | <td valign="top" class="name"> |
---|
46 | |
---|
47 | <jsUtil:toggleControl toggleId="modifications" |
---|
48 | imageId="modificationsImg" |
---|
49 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}" |
---|
50 | openImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}" |
---|
51 | effect="fade" |
---|
52 | text="Modifications" |
---|
53 | /> |
---|
54 | </td> |
---|
55 | |
---|
56 | <td valign="top" style="text-align:left;" class="value"> |
---|
57 | <div id="modifications" style="display:none;"> |
---|
58 | <g:render template="showTaskModifications" /> |
---|
59 | </div> |
---|
60 | </td> |
---|
61 | </tr> |
---|
62 | |
---|
63 | <tr class="prop"> |
---|
64 | <td valign="top" class="name">Primary Asset:</td> |
---|
65 | |
---|
66 | <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> |
---|
67 | |
---|
68 | </tr> |
---|
69 | |
---|
70 | <tr class="prop"> |
---|
71 | <td valign="top" class="name">Associated Assets:</td> |
---|
72 | |
---|
73 | <td valign="top" style="text-align:left;" class="value"> |
---|
74 | <ul> |
---|
75 | <g:each var="a" in="${taskInstance.associatedAssets}"> |
---|
76 | <li>${a?.encodeAsHTML()}</li> |
---|
77 | </g:each> |
---|
78 | </ul> |
---|
79 | </td> |
---|
80 | |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name">Priority:</td> |
---|
85 | |
---|
86 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
87 | |
---|
88 | </tr> |
---|
89 | |
---|
90 | <tr class="prop"> |
---|
91 | <td valign="top" class="name">Positive Fault:</td> |
---|
92 | |
---|
93 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'positiveFault')}</td> |
---|
94 | |
---|
95 | </tr> |
---|
96 | |
---|
97 | <tr class="prop"> |
---|
98 | <td valign="top" class="name">Group:</td> |
---|
99 | |
---|
100 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
101 | |
---|
102 | </tr> |
---|
103 | |
---|
104 | <tr class="prop"> |
---|
105 | <td valign="top" class="name">Type:</td> |
---|
106 | |
---|
107 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
108 | |
---|
109 | </tr> |
---|
110 | |
---|
111 | <tr class="prop"> |
---|
112 | <td valign="top" class="name">Lead Person:</td> |
---|
113 | |
---|
114 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
115 | |
---|
116 | </tr> |
---|
117 | |
---|
118 | <tr class="prop"> |
---|
119 | <td valign="top" class="name">Assigned Groups:</td> |
---|
120 | |
---|
121 | <td valign="top" style="text-align:left;" class="value"> |
---|
122 | <ul> |
---|
123 | <g:each var="a" in="${assignedGroupList}"> |
---|
124 | <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
125 | </g:each> |
---|
126 | </ul> |
---|
127 | <g:link controller="assignedGroupDetailed" action="create" params="['task.id':taskInstance.id]">+Add Group</g:link> |
---|
128 | </td> |
---|
129 | |
---|
130 | </tr> |
---|
131 | |
---|
132 | |
---|
133 | <tr class="prop"> |
---|
134 | <td valign="top" class="name">Assigned Persons:</td> |
---|
135 | |
---|
136 | <td valign="top" style="text-align:left;" class="value"> |
---|
137 | <ul> |
---|
138 | <g:each var="a" in="${assignedPersonList}"> |
---|
139 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
140 | </g:each> |
---|
141 | </ul> |
---|
142 | <g:link controller="assignedPersonDetailed" action="create" params="['task.id':taskInstance?.id]">+Add Person</g:link> |
---|
143 | </td> |
---|
144 | |
---|
145 | </tr> |
---|
146 | |
---|
147 | </tbody> |
---|
148 | </table> |
---|
149 | </div> |
---|
150 | |
---|
151 | <div class="buttons" id="taskControlButtons"> |
---|
152 | <g:render template="showTaskControlButtons" /> |
---|
153 | </div> |
---|
154 | |
---|
155 | <br /> |
---|
156 | |
---|
157 | <div id="entryFaultContainer"> |
---|
158 | <g:if test="${entryFaultList.isEmpty()}"> |
---|
159 | <h1>No Faults</h1> |
---|
160 | <br /> |
---|
161 | </g:if> |
---|
162 | <g:else> |
---|
163 | <g:render template="/entryDetailed/list" |
---|
164 | model="['entryList':entryFaultList]" /> |
---|
165 | </g:else> |
---|
166 | </div> |
---|
167 | |
---|
168 | <br /> |
---|
169 | |
---|
170 | <div id="createEntryFaultContainer" style="display:none;"></div> |
---|
171 | |
---|
172 | <div style="text-align:right;" id="entryFaultButton"> |
---|
173 | <span class="buttons"> |
---|
174 | <input type="button" |
---|
175 | class="add" |
---|
176 | value="Add Fault" |
---|
177 | onclick="getCreateEntryForm(jQuery('#entryFaultContainer'), |
---|
178 | jQuery('#entryFaultButton'), |
---|
179 | {target: '#createEntryFaultContainer', |
---|
180 | taskId: ${taskInstance?.id}, |
---|
181 | entryTypeId: 1})" /> |
---|
182 | </span> |
---|
183 | </div> |
---|
184 | |
---|
185 | <br /> |
---|
186 | |
---|
187 | <div id="entryCauseContainer"> |
---|
188 | <g:if test="${entryCauseList.isEmpty()}"> |
---|
189 | <h1>No Causes</h1> |
---|
190 | <br /> |
---|
191 | </g:if> |
---|
192 | <g:else> |
---|
193 | <g:render template="/entryDetailed/list" |
---|
194 | model="['entryList':entryCauseList]" /> |
---|
195 | </g:else> |
---|
196 | </div> |
---|
197 | |
---|
198 | <br /> |
---|
199 | |
---|
200 | <div id="createEntryCauseContainer" style="display:none;"></div> |
---|
201 | |
---|
202 | <div style="text-align:right;" id="entryCauseButton"> |
---|
203 | <span class="buttons"> |
---|
204 | <input type="button" |
---|
205 | class="add" |
---|
206 | value="Add Cause" |
---|
207 | onclick="getCreateEntryForm(jQuery('#entryCauseContainer'), |
---|
208 | jQuery('#entryCauseButton'), |
---|
209 | {target: '#createEntryCauseContainer', |
---|
210 | taskId: ${taskInstance?.id}, |
---|
211 | entryTypeId: 2})" /> |
---|
212 | </span> |
---|
213 | </div> |
---|
214 | |
---|
215 | <br /> |
---|
216 | |
---|
217 | <div id="workDoneContainer"> |
---|
218 | <g:if test="${entryWorkDoneList.isEmpty()}"> |
---|
219 | <h1>No Work Done</h1> |
---|
220 | <br /> |
---|
221 | </g:if> |
---|
222 | <g:else> |
---|
223 | <g:render template="/entryDetailed/list" |
---|
224 | model="['entryList':entryWorkDoneList]" /> |
---|
225 | </g:else> |
---|
226 | </div> |
---|
227 | |
---|
228 | <br /> |
---|
229 | |
---|
230 | <div id="createWorkDoneContainer" style="display:none;"></div> |
---|
231 | |
---|
232 | <div style="text-align:right;" id="workDoneButton"> |
---|
233 | <span class="buttons"> |
---|
234 | <input type="button" |
---|
235 | class="add" |
---|
236 | value="Add Work Done" |
---|
237 | onclick="getCreateEntryForm(jQuery('#workDoneContainer'), |
---|
238 | jQuery('#workDoneButton'), |
---|
239 | {target: '#createWorkDoneContainer', |
---|
240 | taskId: ${taskInstance?.id}, |
---|
241 | entryTypeId: 3})" /> |
---|
242 | </span> |
---|
243 | </div> |
---|