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 | <g:link action="show" id="${parentTaskInstance.id}"> |
---|
14 | <h1>Task #${parentTaskInstance.id} sub tasks.</h1> |
---|
15 | </g:link> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | |
---|
20 | <div class="paginateButtons"> |
---|
21 | Results:${taskInstanceTotal} |
---|
22 | </div> |
---|
23 | <div class="list"> |
---|
24 | <input type="hidden" name="parentTaskId" value="${parentTaskInstance?.id}" /> |
---|
25 | <table> |
---|
26 | <thead> |
---|
27 | <tr> |
---|
28 | |
---|
29 | <g:sortableColumn action="listSubTasks" property="id" title="Id" /> |
---|
30 | |
---|
31 | <g:sortableColumn action="listSubTasks" property="targetStartDate" title="Target Start Date" /> |
---|
32 | |
---|
33 | <g:sortableColumn action="listSubTasks" property="description" title="Description" /> |
---|
34 | |
---|
35 | <g:sortableColumn action="listSubTasks" property="leadPerson" title="Lead Person" /> |
---|
36 | |
---|
37 | <g:sortableColumn action="listSubTasks" property="taskPriority" title="Task Priority" /> |
---|
38 | |
---|
39 | <g:sortableColumn action="listSubTasks" property="taskStatus" title="Task Status" /> |
---|
40 | |
---|
41 | <th></th> |
---|
42 | |
---|
43 | </tr> |
---|
44 | </thead> |
---|
45 | <tbody> |
---|
46 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
47 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> |
---|
48 | |
---|
49 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
50 | |
---|
51 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
52 | |
---|
53 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
54 | |
---|
55 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
56 | |
---|
57 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
58 | |
---|
59 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
60 | |
---|
61 | <td> |
---|
62 | <g:link action="show" id="${taskInstance.id}"> |
---|
63 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
64 | </g:link> |
---|
65 | </td> |
---|
66 | |
---|
67 | </tr> |
---|
68 | </g:each> |
---|
69 | </tbody> |
---|
70 | </table> |
---|
71 | </div> |
---|
72 | <div class="paginateButtons"> |
---|
73 | <g:paginate action="listSubTasks" id="${parentTaskInstance?.id}" total="${taskInstanceTotal}" /> |
---|
74 | </div> |
---|
75 | </div> |
---|
76 | </body> |
---|
77 | </html> |
---|