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