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 | </head> |
---|
7 | <body> |
---|
8 | <div class="nav"> |
---|
9 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
10 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
11 | </div> |
---|
12 | <div class="body"> |
---|
13 | <h1>Task List</h1> |
---|
14 | <g:if test="${flash.message}"> |
---|
15 | <div class="message">${flash.message}</div> |
---|
16 | </g:if> |
---|
17 | <div class="list"> |
---|
18 | <table> |
---|
19 | <thead> |
---|
20 | <tr> |
---|
21 | |
---|
22 | <g:sortableColumn property="id" title="Id" /> |
---|
23 | |
---|
24 | <g:sortableColumn property="targetStartDate" title="Target Start Date" /> |
---|
25 | |
---|
26 | <g:sortableColumn property="description" title="Description" /> |
---|
27 | |
---|
28 | <th>Lead Person</th> |
---|
29 | |
---|
30 | <th>Task Priority</th> |
---|
31 | |
---|
32 | <th>Task Status</th> |
---|
33 | |
---|
34 | <th></th> |
---|
35 | |
---|
36 | </tr> |
---|
37 | </thead> |
---|
38 | <tbody> |
---|
39 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
40 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
41 | |
---|
42 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
43 | |
---|
44 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd MMM yyyy"/></td> |
---|
45 | |
---|
46 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
47 | |
---|
48 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
49 | |
---|
50 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
51 | |
---|
52 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
53 | |
---|
54 | <td> |
---|
55 | <g:link action="show" id="${taskInstance.id}"> |
---|
56 | <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> |
---|
57 | </g:link> |
---|
58 | </td> |
---|
59 | |
---|
60 | </tr> |
---|
61 | </g:each> |
---|
62 | </tbody> |
---|
63 | </table> |
---|
64 | </div> |
---|
65 | <div class="paginateButtons"> |
---|
66 | <g:paginate total="${Task.count()}" /> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | </body> |
---|
70 | </html> |
---|