1 | |
---|
2 | <g:if test="${subTaskInstanceTotal > 0}"> |
---|
3 | <div class="list"> |
---|
4 | <table> |
---|
5 | <thead> |
---|
6 | <tr> |
---|
7 | |
---|
8 | <th>Task #</th> |
---|
9 | |
---|
10 | <th>Target Start Date</th> |
---|
11 | |
---|
12 | <th>Description</th> |
---|
13 | |
---|
14 | <th> |
---|
15 | <img src="${resource(dir:'images/skin',file:'status.png')}" title="Status" alt="Status" /> |
---|
16 | </th> |
---|
17 | |
---|
18 | <th>Priority</th> |
---|
19 | |
---|
20 | <th></th> |
---|
21 | |
---|
22 | </tr> |
---|
23 | </thead> |
---|
24 | <tbody> |
---|
25 | <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> |
---|
26 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
27 | |
---|
28 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
29 | ${fieldValue(bean:subTaskInstance, field:'id')} |
---|
30 | </td> |
---|
31 | |
---|
32 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
33 | <g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
34 | </td> |
---|
35 | |
---|
36 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
37 | <g:if test="${subTaskInstance.primaryAsset}"> |
---|
38 | ${fieldValue(bean:subTaskInstance, field:'primaryAsset')}: |
---|
39 | </g:if> |
---|
40 | ${fieldValue(bean:subTaskInstance, field:'description')} |
---|
41 | </td> |
---|
42 | |
---|
43 | <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
44 | <g:if test="${subTaskInstance.taskStatus.id == 1}" > |
---|
45 | <img src="${resource(dir:'images/skin',file:'not_started.png')}" alt="Not Started" title="Not Started" /> |
---|
46 | </g:if> |
---|
47 | <g:if test="${subTaskInstance.taskStatus.id == 2}" > |
---|
48 | <img src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" /> |
---|
49 | </g:if> |
---|
50 | <g:if test="${subTaskInstance.taskStatus.id == 3}" > |
---|
51 | <img src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> |
---|
52 | </g:if> |
---|
53 | </td> |
---|
54 | |
---|
55 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
56 | ${fieldValue(bean:subTaskInstance, field:'taskPriority')} |
---|
57 | </td> |
---|
58 | |
---|
59 | <td class="notClickable"> |
---|
60 | <g:link action="show" id="${subTaskInstance.id}"> |
---|
61 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" title="Show" /> |
---|
62 | </g:link> |
---|
63 | </td> |
---|
64 | |
---|
65 | </tr> |
---|
66 | </g:each> |
---|
67 | </tbody> |
---|
68 | </table> |
---|
69 | </div> |
---|
70 | |
---|
71 | <div class="buttons"> |
---|
72 | <g:form> |
---|
73 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
74 | <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> |
---|
75 | Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} |
---|
76 | <br /> |
---|
77 | </g:if> |
---|
78 | <g:else> |
---|
79 | Total ${subTaskInstanceTotal} |
---|
80 | <br /> |
---|
81 | </g:else> |
---|
82 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span> |
---|
83 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
84 | </g:form> |
---|
85 | </div> |
---|
86 | |
---|
87 | </g:if> |
---|
88 | <g:else> |
---|
89 | <br /> |
---|
90 | No Sub Tasks. |
---|
91 | <br /> |
---|
92 | <br /> |
---|
93 | |
---|
94 | <div class="buttons"> |
---|
95 | <g:form> |
---|
96 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
97 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
98 | </g:form> |
---|
99 | </div> |
---|
100 | </g:else> |
---|