1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>Task List</title> |
---|
6 | <nav:resources override="true"/> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <div class="nav"> |
---|
10 | <nav:renderSubItems group="nav"/> |
---|
11 | </div> |
---|
12 | <div class="body"> |
---|
13 | |
---|
14 | <h1>Sub Tasks for: |
---|
15 | <g:link action="show" id="${parentTaskInstance.id}" params="[showTab:'showSubTasksTab']"> |
---|
16 | Task #${parentTaskInstance.id} |
---|
17 | </g:link> |
---|
18 | </h1> |
---|
19 | ${parentTaskInstance.description} |
---|
20 | |
---|
21 | <g:if test="${flash.message}"> |
---|
22 | <div class="message">${flash.message}</div> |
---|
23 | </g:if> |
---|
24 | |
---|
25 | <div class="paginateButtons"> |
---|
26 | Results: ${taskInstanceList.size()} / ${taskInstanceTotal} |
---|
27 | </div> |
---|
28 | <div class="paginateButtons"> |
---|
29 | <g:paginate action="listSubTasks" id="${parentTaskInstance?.id}" total="${taskInstanceTotal}" /> |
---|
30 | </div> |
---|
31 | <div class="list"> |
---|
32 | <input type="hidden" name="parentTaskId" value="${parentTaskInstance?.id}" /> |
---|
33 | <table> |
---|
34 | <thead> |
---|
35 | <tr> |
---|
36 | |
---|
37 | <g:sortableColumn action="listSubTasks" property="id" title="Id" /> |
---|
38 | |
---|
39 | <g:sortableColumn action="listSubTasks" property="targetStartDate" title="Target Start Date" /> |
---|
40 | |
---|
41 | <g:sortableColumn action="listSubTasks" property="description" title="Description" /> |
---|
42 | |
---|
43 | <g:sortableColumn action="listSubTasks" property="leadPerson" title="Lead Person" /> |
---|
44 | |
---|
45 | <g:sortableColumn action="listSubTasks" property="taskPriority" title="Task Priority" /> |
---|
46 | |
---|
47 | <g:sortableColumn action="listSubTasks" property="taskStatus" title="Task Status" /> |
---|
48 | |
---|
49 | <th></th> |
---|
50 | |
---|
51 | </tr> |
---|
52 | </thead> |
---|
53 | <tbody> |
---|
54 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
55 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> |
---|
56 | |
---|
57 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
58 | |
---|
59 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
60 | |
---|
61 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
62 | |
---|
63 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
64 | |
---|
65 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
66 | |
---|
67 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
68 | |
---|
69 | <td> |
---|
70 | <g:link action="show" id="${taskInstance.id}"> |
---|
71 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
72 | </g:link> |
---|
73 | </td> |
---|
74 | |
---|
75 | </tr> |
---|
76 | </g:each> |
---|
77 | </tbody> |
---|
78 | </table> |
---|
79 | </div> |
---|
80 | <div class="paginateButtons"> |
---|
81 | <g:paginate action="listSubTasks" id="${parentTaskInstance?.id}" total="${taskInstanceTotal}" /> |
---|
82 | </div> |
---|
83 | </div> |
---|
84 | </body> |
---|
85 | </html> |
---|