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