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> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <div class="nav"> |
---|
9 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
10 | <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> |
---|
11 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <h1>Show Task</h1> |
---|
15 | <g:if test="${flash.message}"> |
---|
16 | <div class="message">${flash.message}</div> |
---|
17 | </g:if> |
---|
18 | <div class="dialog"> |
---|
19 | <table> |
---|
20 | <tbody> |
---|
21 | |
---|
22 | |
---|
23 | <tr class="prop"> |
---|
24 | <td valign="top" class="name">Id:</td> |
---|
25 | |
---|
26 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
27 | |
---|
28 | </tr> |
---|
29 | |
---|
30 | <tr class="prop"> |
---|
31 | <td valign="top" class="name">Description:</td> |
---|
32 | |
---|
33 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
34 | |
---|
35 | </tr> |
---|
36 | |
---|
37 | <tr class="prop"> |
---|
38 | <td valign="top" class="name">Comment:</td> |
---|
39 | |
---|
40 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
41 | |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr class="prop"> |
---|
45 | <td valign="top" class="name">Target Start Date:</td> |
---|
46 | |
---|
47 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd MMM yyyy"/></td> |
---|
48 | |
---|
49 | </tr> |
---|
50 | |
---|
51 | <tr class="prop"> |
---|
52 | <td valign="top" class="name">Target Completion Date:</td> |
---|
53 | |
---|
54 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd MMM yyyy"/></td> |
---|
55 | |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="name">Lead Person:</td> |
---|
60 | |
---|
61 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
62 | |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="name">Task Priority:</td> |
---|
67 | |
---|
68 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
69 | |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name">Task Status:</td> |
---|
74 | |
---|
75 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
---|
76 | |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name">Is Active:</td> |
---|
81 | |
---|
82 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> |
---|
83 | |
---|
84 | </tr> |
---|
85 | |
---|
86 | <tr class="prop"> |
---|
87 | <td valign="top" class="name">Is Approved:</td> |
---|
88 | |
---|
89 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> |
---|
90 | |
---|
91 | </tr> |
---|
92 | |
---|
93 | <tr class="prop"> |
---|
94 | <td valign="top" class="name">Is Scheduled:</td> |
---|
95 | |
---|
96 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> |
---|
97 | |
---|
98 | </tr> |
---|
99 | |
---|
100 | <tr class="prop"> |
---|
101 | <td valign="top" class="name">Parent Task:</td> |
---|
102 | |
---|
103 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> |
---|
104 | |
---|
105 | </tr> |
---|
106 | |
---|
107 | <tr class="prop"> |
---|
108 | <td valign="top" class="name">Sub Tasks:</td> |
---|
109 | |
---|
110 | <td valign="top" style="text-align:left;" class="value"> |
---|
111 | <ul> |
---|
112 | <g:each var="s" in="${taskInstance.subTasks}"> |
---|
113 | <li><g:link controller="taskDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
114 | </g:each> |
---|
115 | </ul> |
---|
116 | </td> |
---|
117 | |
---|
118 | </tr> |
---|
119 | |
---|
120 | <tr class="prop"> |
---|
121 | <td valign="top" class="name">Task Group:</td> |
---|
122 | |
---|
123 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
124 | |
---|
125 | </tr> |
---|
126 | |
---|
127 | <tr class="prop"> |
---|
128 | <td valign="top" class="name">Task Type:</td> |
---|
129 | |
---|
130 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
131 | |
---|
132 | </tr> |
---|
133 | |
---|
134 | <tr class="prop"> |
---|
135 | <td valign="top" class="name">Assigned Persons:</td> |
---|
136 | |
---|
137 | <td valign="top" style="text-align:left;" class="value"> |
---|
138 | <ul> |
---|
139 | <g:each var="a" in="${taskInstance.assignedPersons}"> |
---|
140 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
141 | </g:each> |
---|
142 | </ul> |
---|
143 | </td> |
---|
144 | |
---|
145 | </tr> |
---|
146 | |
---|
147 | </tbody> |
---|
148 | </table> |
---|
149 | </div> |
---|
150 | <div class="buttons"> |
---|
151 | <g:form> |
---|
152 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
153 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
154 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
155 | </g:form> |
---|
156 | </div> |
---|
157 | |
---|
158 | <div class="list"> |
---|
159 | <h1>Faults</h1> |
---|
160 | <table> |
---|
161 | <thead> |
---|
162 | <tr> |
---|
163 | <th style="color:Black">Comment</th> |
---|
164 | <th style="color:Black">Date Done</th> |
---|
165 | <th style="color:Black">Duration</th> |
---|
166 | <th style="color:Black">Entered By</th> |
---|
167 | <th style="color:Black">Edit</th> |
---|
168 | |
---|
169 | <!-- <g:sortableColumn property="comment" title="Comment" /> |
---|
170 | |
---|
171 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
172 | |
---|
173 | <g:sortableColumn property="enteredBy" title="Entered By" />--> |
---|
174 | </tr> |
---|
175 | </thead> |
---|
176 | <tbody> |
---|
177 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
178 | <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> |
---|
179 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
180 | |
---|
181 | <td width="65%">${entry.comment}</td> |
---|
182 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
183 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
184 | <td>${entry.enteredBy}</td> |
---|
185 | <td><g:link controller="entryDetailed" action="edit" id="${entry.id}">Edit</g:link></td> |
---|
186 | |
---|
187 | </g:if> |
---|
188 | |
---|
189 | </tr> |
---|
190 | </g:each> |
---|
191 | </tbody> |
---|
192 | </table> |
---|
193 | </div> |
---|
194 | |
---|
195 | <div class="list"> |
---|
196 | <h1>Work Done</h1> |
---|
197 | <table> |
---|
198 | <thead> |
---|
199 | <tr> |
---|
200 | <th style="color:Black">Comment</th> |
---|
201 | <th style="color:Black">Date Done</th> |
---|
202 | <th style="color:Black">Duration</th> |
---|
203 | <th style="color:Black">Entered By</th> |
---|
204 | <th style="color:Black">Edit</th> |
---|
205 | <!-- <g:sortableColumn property="commentW" title="Comment" /> |
---|
206 | |
---|
207 | <g:sortableColumn property="dateDoneW" title="Date Done" /> |
---|
208 | |
---|
209 | <g:sortableColumn property="enteredByW" title="Entered By" />--> |
---|
210 | </tr> |
---|
211 | </thead> |
---|
212 | <tbody> |
---|
213 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
214 | <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> |
---|
215 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
216 | |
---|
217 | <td width="65%">${entry.comment}</td> |
---|
218 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
219 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
220 | <td>${entry.enteredBy}</td> |
---|
221 | <td><g:link controller="entryDetailed" action="edit" id="${entry.id}">Edit</g:link></td> |
---|
222 | </g:if> |
---|
223 | |
---|
224 | </tr> |
---|
225 | </g:each> |
---|
226 | </tbody> |
---|
227 | </table> |
---|
228 | </div> |
---|
229 | |
---|
230 | <br /> |
---|
231 | |
---|
232 | <div class="buttons"> |
---|
233 | <g:form controller="entryDetailed"> |
---|
234 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
235 | <span class="button"> |
---|
236 | <g:actionSubmit value="Add Entry" action="create" class="edit"/> |
---|
237 | </span> |
---|
238 | </g:form> |
---|
239 | </div> |
---|
240 | |
---|
241 | </div> |
---|
242 | </body> |
---|
243 | </html> |
---|