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"><g:link controller="person" action="show" id="${taskInstance?.leadPerson?.id}">${taskInstance?.leadPerson?.encodeAsHTML()}</g:link></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"><g:link controller="taskPriority" action="show" id="${taskInstance?.taskPriority?.id}">${taskInstance?.taskPriority?.encodeAsHTML()}</g:link></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"><g:link controller="taskStatus" action="show" id="${taskInstance?.taskStatus?.id}">${taskInstance?.taskStatus?.encodeAsHTML()}</g:link></td> |
---|
76 | |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name">Assigned Persons:</td> |
---|
81 | |
---|
82 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'assignedPersons')}</td> |
---|
83 | |
---|
84 | </tr> |
---|
85 | |
---|
86 | <tr class="prop"> |
---|
87 | <td valign="top" class="name">Is Active:</td> |
---|
88 | |
---|
89 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> |
---|
90 | |
---|
91 | </tr> |
---|
92 | |
---|
93 | <tr class="prop"> |
---|
94 | <td valign="top" class="name">Is Approved:</td> |
---|
95 | |
---|
96 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> |
---|
97 | |
---|
98 | </tr> |
---|
99 | |
---|
100 | <tr class="prop"> |
---|
101 | <td valign="top" class="name">Is Scheduled:</td> |
---|
102 | |
---|
103 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> |
---|
104 | |
---|
105 | </tr> |
---|
106 | |
---|
107 | <tr class="prop"> |
---|
108 | <td valign="top" class="name">Modifications:</td> |
---|
109 | |
---|
110 | <td valign="top" style="text-align:left;" class="value"> |
---|
111 | <ul> |
---|
112 | <g:each var="m" in="${taskInstance.modifications}"> |
---|
113 | <li><g:link controller="modification" action="show" id="${m.id}">${m?.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">Parent Task:</td> |
---|
122 | |
---|
123 | <td valign="top" class="value"><g:link controller="task" 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">Sub Tasks:</td> |
---|
129 | |
---|
130 | <td valign="top" style="text-align:left;" class="value"> |
---|
131 | <ul> |
---|
132 | <g:each var="s" in="${taskInstance.subTasks}"> |
---|
133 | <li><g:link controller="task" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
134 | </g:each> |
---|
135 | </ul> |
---|
136 | </td> |
---|
137 | |
---|
138 | </tr> |
---|
139 | |
---|
140 | <tr class="prop"> |
---|
141 | <td valign="top" class="name">Task Group:</td> |
---|
142 | |
---|
143 | <td valign="top" class="value"><g:link controller="taskGroup" action="show" id="${taskInstance?.taskGroup?.id}">${taskInstance?.taskGroup?.encodeAsHTML()}</g:link></td> |
---|
144 | |
---|
145 | </tr> |
---|
146 | |
---|
147 | <tr class="prop"> |
---|
148 | <td valign="top" class="name">Task Type:</td> |
---|
149 | |
---|
150 | <td valign="top" class="value"><g:link controller="taskType" action="show" id="${taskInstance?.taskType?.id}">${taskInstance?.taskType?.encodeAsHTML()}</g:link></td> |
---|
151 | |
---|
152 | </tr> |
---|
153 | |
---|
154 | </tbody> |
---|
155 | </table> |
---|
156 | </div> |
---|
157 | <div class="buttons"> |
---|
158 | <g:form> |
---|
159 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
160 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
161 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
162 | </g:form> |
---|
163 | </div> |
---|
164 | |
---|
165 | <div class="list"> |
---|
166 | <h1>Faults</h1> |
---|
167 | <table> |
---|
168 | <thead> |
---|
169 | <tr> |
---|
170 | <g:sortableColumn property="comment" title="Comment" /> |
---|
171 | |
---|
172 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
173 | |
---|
174 | <g:sortableColumn property="enteredBy" title="Entered By" /> |
---|
175 | </tr> |
---|
176 | </thead> |
---|
177 | <tbody> |
---|
178 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
179 | <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> |
---|
180 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
181 | |
---|
182 | <td width="65%">${entry.comment}</td> |
---|
183 | |
---|
184 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
185 | |
---|
186 | <td>${entry.enteredBy}</td> |
---|
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 | <g:sortableColumn property="comment" title="Comment" /> |
---|
201 | |
---|
202 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
203 | |
---|
204 | <g:sortableColumn property="enteredBy" title="Entered By" /> |
---|
205 | </tr> |
---|
206 | </thead> |
---|
207 | <tbody> |
---|
208 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
209 | <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> |
---|
210 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
211 | |
---|
212 | <td width="65%">${entry.comment}</td> |
---|
213 | |
---|
214 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
215 | |
---|
216 | <td>${entry.enteredBy}</td> |
---|
217 | </g:if> |
---|
218 | |
---|
219 | </tr> |
---|
220 | </g:each> |
---|
221 | </tbody> |
---|
222 | </table> |
---|
223 | </div> |
---|
224 | |
---|
225 | </div> |
---|
226 | </body> |
---|
227 | </html> |
---|